





from __future__ import annotations


def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__ = 4						):
		lowerCamelCase_	:     List[str] 						=      abs(lowerCAmelCase__						) or 4
		return [[1 + x + y * row_size for x in range(lowerCAmelCase__						)] for y in range(lowerCAmelCase__						)]


def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__						):
		return reverse_row(transpose(lowerCAmelCase__						)						)
		# OR.. transpose(reverse_column(matrix))


def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__						):
		return reverse_row(reverse_column(lowerCAmelCase__						)						)
		# OR.. reverse_column(reverse_row(matrix))


def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__						):
		return reverse_column(transpose(lowerCAmelCase__						)						)
		# OR.. transpose(reverse_row(matrix))


def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__						):
		lowerCamelCase_	:     Optional[Any] 						=      [list(lowerCAmelCase__						) for x in zip(*lowerCAmelCase__						)]
		return matrix


def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__						):
		lowerCamelCase_	:     Any 						=      matrix[::-1]
		return matrix


def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__						):
		lowerCamelCase_	:     List[Any] 						=      [x[::-1] for x in matrix]
		return matrix


def 		_SCREAMING_SNAKE_CASE     ( lowerCAmelCase__						):
		for i in matrix:
				print(*lowerCAmelCase__						)


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		:  Optional[int]			       =make_matrix()
		print("""\norigin:\n""")
		print_matrix(matrix)
		print("""\nrotate 180:\n""")
		print_matrix(rotate_aaa(matrix))

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







import os
import sys

_lowercase		:  List[str]			       =os.path.join(os.path.dirname(__file__), """src""")
sys.path.append(SRC_DIR)


from transformers import (
    AutoConfig,
    AutoModel,
    AutoModelForCausalLM,
    AutoModelForMaskedLM,
    AutoModelForQuestionAnswering,
    AutoModelForSequenceClassification,
    AutoTokenizer,
    add_start_docstrings,
)


_lowercase		:  Optional[int]			       =[
    """torch""",
    """numpy""",
    """tokenizers""",
    """filelock""",
    """requests""",
    """tqdm""",
    """regex""",
    """sentencepiece""",
    """sacremoses""",
    """importlib_metadata""",
    """huggingface_hub""",
]


@add_start_docstrings(AutoConfig.__doc__						)
def 		_SCREAMING_SNAKE_CASE     ( *lowerCAmelCase__							,**lowerCAmelCase__						):
		return AutoConfig.from_pretrained(*lowerCAmelCase__							,**lowerCAmelCase__						)


@add_start_docstrings(AutoTokenizer.__doc__						)
def 		_SCREAMING_SNAKE_CASE     ( *lowerCAmelCase__							,**lowerCAmelCase__						):
		return AutoTokenizer.from_pretrained(*lowerCAmelCase__							,**lowerCAmelCase__						)


@add_start_docstrings(AutoModel.__doc__						)
def 		_SCREAMING_SNAKE_CASE     ( *lowerCAmelCase__							,**lowerCAmelCase__						):
		return AutoModel.from_pretrained(*lowerCAmelCase__							,**lowerCAmelCase__						)


@add_start_docstrings(AutoModelForCausalLM.__doc__						)
def 		_SCREAMING_SNAKE_CASE     ( *lowerCAmelCase__							,**lowerCAmelCase__						):
		return AutoModelForCausalLM.from_pretrained(*lowerCAmelCase__							,**lowerCAmelCase__						)


@add_start_docstrings(AutoModelForMaskedLM.__doc__						)
def 		_SCREAMING_SNAKE_CASE     ( *lowerCAmelCase__							,**lowerCAmelCase__						):
		return AutoModelForMaskedLM.from_pretrained(*lowerCAmelCase__							,**lowerCAmelCase__						)


@add_start_docstrings(AutoModelForSequenceClassification.__doc__						)
def 		_SCREAMING_SNAKE_CASE     ( *lowerCAmelCase__							,**lowerCAmelCase__						):
		return AutoModelForSequenceClassification.from_pretrained(*lowerCAmelCase__							,**lowerCAmelCase__						)





@add_start_docstrings(AutoModelForQuestionAnswering.__doc__						)
def 		_SCREAMING_SNAKE_CASE     ( *lowerCAmelCase__							,**lowerCAmelCase__						):
		return AutoModelForQuestionAnswering.from_pretrained(*lowerCAmelCase__							,**lowerCAmelCase__						)
