
"""simple docstring"""


# Function to print upper half of diamond (pyramid)






def 					_snake_case (						snake_case__      :   Dict   ):
	for i in range(0		,					snake_case__   ):
		for _ in range(0		,					n - i - 1   ):  # printing spaces
			print(' '		,					end=''   )
		for _ in range(0		,					i + 1   ):  # printing stars
			print('* '		,					end=''   )
		print()






def 					_snake_case (						snake_case__      :   Tuple   ):
	for i in range(snake_case__		,					0		,					-1   ):
		for _ in range(snake_case__		,					0		,					-1   ):  # printing stars
			print('* '		,					end=''   )
		print()
		for _ in range(n - i + 1		,					0		,					-1   ):  # printing spaces
			print(' '		,					end=''   )






def 					_snake_case (						snake_case__      :   Dict   ):
	if n <= 0:
		print('       ...       ....        nothing printing :('   )
		return
	floyd(snake_case__   )  # upper half
	reverse_floyd(snake_case__   )  # lower half


if __name__ == "__main__":
		print(r'''| /\ | |- |  |-  |--| |\  /| |-''')
		print(r'''|/  \| |- |_ |_  |__| | \/ | |_''')
		_lowercase							      = 1
		while K:
				_lowercase							      = int(input('''enter the number and , and see the magic : '''))
				print()
				pretty_print(user_number)
				_lowercase							      = int(input('''press 0 to exit... and 1 to continue...'''))

		print('''Good Bye...''')



'''simple docstring'''




import pickle
import unittest

import torch

from accelerate import Accelerator
from accelerate.state import AcceleratorState
from accelerate.test_utils import require_cpu

@require_cpu
class 		UpperCAmelCase_      (  unittest.TestCase		):





     def 							__UpperCAmelCase      ( self       :      str    )				->  List[Any]:
        lowerCAmelCase     =			torch.nn.Linear(1_0    ,      1_0    )
        lowerCAmelCase     =			torch.optim.SGD(model.parameters()    ,      0.1    )
        lowerCAmelCase     =			Accelerator()
        lowerCAmelCase     =			accelerator.prepare(UpperCAmelCase__    )
        try:
           pickle.loads(pickle.dumps(UpperCAmelCase__    )    )
        except Exception as e:
           self.fail(F'''Accelerated optimizer pickling failed with {e}'''    )
        AcceleratorState._reset_state()





