






import unittest

from transformers import load_tool

from .test_tools_common import ToolTesterMixin






class 							__magic_name__     (	unittest.TestCase,						UpperCAmelCase_				):







	"""simple docstring"""



	def        lowerCamelCase__		(							self       )						->  Union[str, Any]:
							lowercase_      :   List[str]        =			load_tool('text-classification'       )
							self.tool.setup()
							lowercase_      :   Dict        =			load_tool('text-classification'  ,      remote=_lowercase       )
	def        lowerCamelCase__		(							self       )						->  Optional[Any]:
							lowercase_      :   Tuple        =			self.tool('That\'s quite cool'  ,      ['positive', 'negative']       )
							self.assertEqual(_lowercase  ,      'positive'       )
	def        lowerCamelCase__		(							self       )						->  Any:
							lowercase_      :   Optional[Any]        =			self.remote_tool('That\'s quite cool'  ,      ['positive', 'negative']       )
							self.assertEqual(_lowercase  ,      'positive'       )
	def        lowerCamelCase__		(							self       )						->  Optional[int]:
							lowercase_      :   Tuple        =			self.tool(text='That\'s quite cool'  ,      labels=['positive', 'negative']       )
							self.assertEqual(_lowercase  ,      'positive'       )







	def        lowerCamelCase__		(							self       )						->  Optional[int]:
							lowercase_      :   Any        =			self.remote_tool(text='That\'s quite cool'  ,      labels=['positive', 'negative']       )
							self.assertEqual(_lowercase  ,      'positive'       )








'''simple docstring'''

from __future__ import annotations






def 	_UpperCAmelCase    (  a		:	int = 4							)			->			list[list[int]]:





						"""simple docstring"""
						lowercase_      :   Tuple        =			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]]							)			->			list[list[int]]:





						"""simple docstring"""
						return reverse_row(transpose(a							)							)
						# OR.. transpose(reverse_column(matrix))






def 	_UpperCAmelCase    (  a		:	list[list[int]]							)			->			list[list[int]]:





						"""simple docstring"""
						return reverse_row(reverse_column(a							)							)
						# OR.. reverse_column(reverse_row(matrix))






def 	_UpperCAmelCase    (  a		:	list[list[int]]							)			->			list[list[int]]:





						"""simple docstring"""
						return reverse_column(transpose(a							)							)
						# OR.. transpose(reverse_row(matrix))






def 	_UpperCAmelCase    (  a		:	list[list[int]]							)			->			list[list[int]]:





						"""simple docstring"""
						lowercase_      :   Any        =			[list(a							) for x in zip(*a							)]
						return matrix






def 	_UpperCAmelCase    (  a		:	list[list[int]]							)			->			list[list[int]]:





						"""simple docstring"""
						lowercase_      :   List[str]        =			matrix[::-1]
						return matrix






def 	_UpperCAmelCase    (  a		:	list[list[int]]							)			->			list[list[int]]:





						"""simple docstring"""
						lowercase_      :   str        =			[x[::-1] for x in matrix]
						return matrix






def 	_UpperCAmelCase    (  a		:	list[list[int]]							)			->			None:





						"""simple docstring"""
						for i in matrix:
												print(*a							)


if __name__ == "__main__":
						A:      Dict  				=				make_matrix()
						print("\norigin:\n")
						print_matrix(matrix)
						print("\nrotate 90 counterclockwise:\n")
						print_matrix(rotate_aa(matrix))

						A:      List[Any]  				=				make_matrix()
						print("\norigin:\n")
						print_matrix(matrix)
						print("\nrotate 180:\n")
						print_matrix(rotate_aaa(matrix))

						A:      List[str]  				=				make_matrix()
						print("\norigin:\n")
						print_matrix(matrix)
						print("\nrotate 270 counterclockwise:\n")
						print_matrix(rotate_aaa(matrix))
