'''simple docstring'''
from __future__ import annotations







def  _UpperCamelCase (     _a	:	int = 4			):




    """simple docstring"""



    __UpperCamelCase	:	str		    =  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"""



    __UpperCamelCase	:	Optional[int]		    =  [list(_a			) for x in zip(*_a			)]
    return matrix







def  _UpperCamelCase (     _a	:	list[list[int]]			):




    """simple docstring"""



    __UpperCamelCase	:	Union[str, Any]		    =  matrix[::-1]
    return matrix







def  _UpperCamelCase (     _a	:	list[list[int]]			):




    """simple docstring"""



    __UpperCamelCase	:	List[Any]		    =  [x[::-1] for x in matrix]
    return matrix







def  _UpperCamelCase (     _a	:	list[list[int]]			):




    """simple docstring"""



    for i in matrix:
        print(*_a			)


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

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

  a      =  make_matrix()
  print('''\norigin:\n''')
  print_matrix(matrix)
  print('''\nrotate 270 counterclockwise:\n''')
  print_matrix(rotate_aaa(matrix))




'''simple docstring'''
from urllib.parse import quote

import pytest

from datasets.utils.hub import hf_hub_url







@pytest.mark.parametrize('repo_id'				,     ['canonical_dataset_name', 'org-name/dataset-name']			)
@pytest.mark.parametrize('path'				,     ['filename.csv', 'filename with blanks.csv']			)
@pytest.mark.parametrize('revision'				,     [None, 'v2']			)
def  _UpperCamelCase (     _a	:	Any				,     _a	:	int				,     _a	:	Dict			):




    """simple docstring"""



    __UpperCamelCase	:	List[Any]		    =  hf_hub_url(repo_id=_a				,     path=_a				,     revision=_a			)
    assert url == f"""https://huggingface.co/datasets/{repo_id}/resolve/{revision or 'main'}/{quote(_a			)}"""



