



from datetime import datetime

import matplotlib.pyplot as plt
import torch






def 	_lowerCAmelCase						(				__lowerCamelCase   :     Dict     ):



 """simple docstring"""





 for param in module.parameters():
  __SCREAMING_SNAKE_CASE       :    List[str]       =	False






def 	_lowerCAmelCase						(				):



 """simple docstring"""





 __SCREAMING_SNAKE_CASE       :    Dict       =	'''cuda''' if torch.cuda.is_available() else '''cpu'''
 if torch.backends.mps.is_available() and torch.backends.mps.is_built():
  __SCREAMING_SNAKE_CASE       :    Optional[int]       =	'''mps'''
 if device == "mps":
  print(
      "WARNING: MPS currently doesn\'t seem to work, and messes up backpropagation without any visible torch"
      " errors. I recommend using CUDA on a colab notebook or CPU instead if you\'re facing inexplicable issues"
      " with generations."     )
 return device






def 	_lowerCAmelCase						(				__lowerCamelCase   :     Union[str, Any]     ):



 """simple docstring"""





 __SCREAMING_SNAKE_CASE       :    Optional[int]       =	plt.imshow(__lowerCamelCase     )
 fig.axes.get_xaxis().set_visible(__lowerCamelCase     )
 fig.axes.get_yaxis().set_visible(__lowerCamelCase     )
 plt.show()






def 	_lowerCAmelCase						(				):



 """simple docstring"""





 __SCREAMING_SNAKE_CASE       :    Any       =	datetime.now()
 __SCREAMING_SNAKE_CASE       :    Dict       =	current_time.strftime("%H:%M:%S"     )
 return timestamp











def 	_lowerCAmelCase						(				__lowerCamelCase   :     Union[str, Any]		,	__lowerCamelCase   :     Dict		,	__lowerCamelCase   :     Dict		,	__lowerCamelCase   :     int     ):



 """simple docstring"""





 if height >= 1:
  move_tower(height - 1		,	__lowerCamelCase		,	__lowerCamelCase		,	__lowerCamelCase     )
  move_disk(__lowerCamelCase		,	__lowerCamelCase     )
  move_tower(height - 1		,	__lowerCamelCase		,	__lowerCamelCase		,	__lowerCamelCase     )






def 	_lowerCAmelCase						(				__lowerCamelCase   :     Optional[Any]		,	__lowerCamelCase   :     Optional[int]     ):



 """simple docstring"""





 print("moving disk from"		,	__lowerCamelCase		,	"to"		,	__lowerCamelCase     )






def 	_lowerCAmelCase						(				):



 """simple docstring"""





 __SCREAMING_SNAKE_CASE       :    List[Any]       =	int(input("Height of hanoi: "     ).strip()     )
 move_tower(__lowerCamelCase		,	"A"		,	"B"		,	"C"     )


if __name__ == "__main__":
      main()






