
'''simple docstring'''







from __future__ import annotations







def        SCREAMING_SNAKE_CASE__			(     __A = 4			) ->			list[list[int]]:
	_snake_case     		=	abs(__A			) or 4
	return [[1 + x + y * row_size for x in range(__A			)] for y in range(__A			)]







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			list[list[int]]:
	return reverse_row(transpose(__A			)			)
	# OR.. transpose(reverse_column(matrix))







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			list[list[int]]:
	return reverse_row(reverse_column(__A			)			)
	# OR.. reverse_column(reverse_row(matrix))







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			list[list[int]]:
	return reverse_column(transpose(__A			)			)
	# OR.. transpose(reverse_row(matrix))







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			list[list[int]]:
	_snake_case     		=	[list(__A			) for x in zip(*__A			)]
	return matrix







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			list[list[int]]:
	_snake_case     		=	matrix[::-1]
	return matrix







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			list[list[int]]:
	_snake_case     		=	[x[::-1] for x in matrix]
	return matrix







def        SCREAMING_SNAKE_CASE__			(     __A			) ->			None:
	for i in matrix:
		print(*__A			)


if __name__ == "__main__":
							lowercase					:							List[str]   =      make_matrix()
							print("\norigin:\n")
							print_matrix(matrix)
							print("\nrotate 90 counterclockwise:\n")
							print_matrix(rotate_aa(matrix))

							lowercase					:							Dict   =      make_matrix()
							print("\norigin:\n")
							print_matrix(matrix)
							print("\nrotate 180:\n")
							print_matrix(rotate_aaa(matrix))

							lowercase					:							Tuple   =      make_matrix()
							print("\norigin:\n")
							print_matrix(matrix)
							print("\nrotate 270 counterclockwise:\n")
							print_matrix(rotate_aaa(matrix))



'''simple docstring'''







from typing import TYPE_CHECKING

from ...utils import OptionalDependencyNotAvailable, _LazyModule, is_torch_available, is_vision_available


lowercase					:							int   =      {
    "configuration_mask2former": [
        "MASK2FORMER_PRETRAINED_CONFIG_ARCHIVE_MAP",
        "Mask2FormerConfig",
    ],
}

try:
					if not is_vision_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowercase					:							Optional[int]   =      ["Mask2FormerImageProcessor"]

try:
					if not is_torch_available():
										raise OptionalDependencyNotAvailable()
except OptionalDependencyNotAvailable:
					pass
else:
					lowercase					:							Optional[Any]   =      [
					    "MASK2FORMER_PRETRAINED_MODEL_ARCHIVE_LIST",
					    "Mask2FormerForUniversalSegmentation",
					    "Mask2FormerModel",
					    "Mask2FormerPreTrainedModel",
					]

if TYPE_CHECKING:
					from .configuration_maskaformer import MASK2FORMER_PRETRAINED_CONFIG_ARCHIVE_MAP, MaskaFormerConfig

					try:
										if not is_vision_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .image_processing_maskaformer import MaskaFormerImageProcessor

					try:
										if not is_torch_available():
															raise OptionalDependencyNotAvailable()
					except OptionalDependencyNotAvailable:
										pass
					else:
										from .modeling_maskaformer import (
										    MASK2FORMER_PRETRAINED_MODEL_ARCHIVE_LIST,
										    MaskaFormerForUniversalSegmentation,
										    MaskaFormerModel,
										    MaskaFormerPreTrainedModel,
										)


else:
					import sys

					lowercase					:							int   =      _LazyModule(__name__, globals()["__file__"], _import_structure)

