
import pytest

import datasets


# Import fixture modules as plugins
SCREAMING_SNAKE_CASE							:str										=    ['tests.fixtures.files', 'tests.fixtures.hub', 'tests.fixtures.fsspec']


def 						UpperCAmelCase      (     a_		,       a_						)		->     str:







				"""simple docstring"""



				for item in items:
								if any(marker in item.keywords for marker in ["integration", "unit"]						):
												continue
								item.add_marker(pytest.mark.unit						)


def 						UpperCAmelCase      (     a_						)		->     Optional[int]:







				"""simple docstring"""



				config.addinivalue_line("markers"		,       "torchaudio_latest: mark test to run with torchaudio>=0.12"						)


@pytest.fixture(autouse=a_						)
def 						UpperCAmelCase      (     a_		,       a_						)		->     Union[str, Any]:







				"""simple docstring"""



				__A             =			tmp_path_factory.getbasetemp() / "cache"
				__A             =			test_hf_cache_home / "datasets"
				__A             =			test_hf_cache_home / "metrics"
				__A             =			test_hf_cache_home / "modules"
				monkeypatch.setattr("datasets.config.HF_DATASETS_CACHE"		,       str(a_						)						)
				monkeypatch.setattr("datasets.config.HF_METRICS_CACHE"		,       str(a_						)						)
				monkeypatch.setattr("datasets.config.HF_MODULES_CACHE"		,       str(a_						)						)
				__A             =			test_hf_datasets_cache / "downloads"
				monkeypatch.setattr("datasets.config.DOWNLOADED_DATASETS_PATH"		,       str(a_						)						)
				__A             =			test_hf_datasets_cache / "downloads" / "extracted"
				monkeypatch.setattr("datasets.config.EXTRACTED_DATASETS_PATH"		,       str(a_						)						)


@pytest.fixture(autouse=a_		,       scope="session"						)
def 						UpperCAmelCase      (     )		->     str:







				"""simple docstring"""



				datasets.disable_progress_bar()


@pytest.fixture(autouse=a_						)
def 						UpperCAmelCase      (     a_						)		->     Optional[int]:







				"""simple docstring"""



				monkeypatch.setattr("datasets.config.HF_UPDATE_DOWNLOAD_COUNTS"		,       a_						)


@pytest.fixture
def 						UpperCAmelCase      (     a_						)		->     List[Any]:







				"""simple docstring"""



				monkeypatch.setattr("sqlalchemy.util.deprecations.SILENCE_UBER_WARNING"		,       a_						)


from __future__ import annotations


def 						UpperCAmelCase      (     a_ = 4						)		->     list[list[int]]:







				"""simple docstring"""



				__A             =			abs(a_						) or 4
				return [[1 + x + y * row_size for x in range(a_						)] for y in range(a_						)]


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				return reverse_row(transpose(a_						)						)
				# OR.. transpose(reverse_column(matrix))


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				return reverse_row(reverse_column(a_						)						)
				# OR.. reverse_column(reverse_row(matrix))


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				return reverse_column(transpose(a_						)						)
				# OR.. transpose(reverse_row(matrix))


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				__A             =			[list(a_						) for x in zip(*a_						)]
				return matrix


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				__A             =			matrix[::-1]
				return matrix


def 						UpperCAmelCase      (     a_						)		->     list[list[int]]:







				"""simple docstring"""



				__A             =			[x[::-1] for x in matrix]
				return matrix


def 						UpperCAmelCase      (     a_						)		->     None:







				"""simple docstring"""



				for i in matrix:
								print(*a_						)


if __name__ == "__main__":
					SCREAMING_SNAKE_CASE							:Union[str, Any]										=    make_matrix()
					print('\norigin:\n')
					print_matrix(matrix)
					print('\nrotate 90 counterclockwise:\n')
					print_matrix(rotate_aa(matrix))

					SCREAMING_SNAKE_CASE							:Tuple										=    make_matrix()
					print('\norigin:\n')
					print_matrix(matrix)
					print('\nrotate 180:\n')
					print_matrix(rotate_aaa(matrix))

					SCREAMING_SNAKE_CASE							:Union[str, Any]										=    make_matrix()
					print('\norigin:\n')
					print_matrix(matrix)
					print('\nrotate 270 counterclockwise:\n')
					print_matrix(rotate_aaa(matrix))
