



from datetime import datetime

import matplotlib.pyplot as plt
import torch







def snake_case__  (			__SCREAMING_SNAKE_CASE )		->							Optional[int]:
		for param in module.parameters():
				UpperCAmelCase_						=				False







def snake_case__  (			)		->							Optional[int]:
		UpperCAmelCase_						=				"cuda" if torch.cuda.is_available() else "cpu"
		if torch.backends.mps.is_available() and torch.backends.mps.is_built():
				UpperCAmelCase_						=				"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 snake_case__  (			__SCREAMING_SNAKE_CASE )		->							List[str]:
		UpperCAmelCase_						=				plt.imshow(__lowerCAmelCase )
		fig.axes.get_xaxis().set_visible(__lowerCAmelCase )
		fig.axes.get_yaxis().set_visible(__lowerCAmelCase )
		plt.show()







def snake_case__  (			)		->							int:
		UpperCAmelCase_						=				datetime.now()
		UpperCAmelCase_						=				current_time.strftime("%H:%M:%S" )
		return timestamp






def snake_case__  (			__SCREAMING_SNAKE_CASE )		->							int:
		UpperCAmelCase_						=				[1]

		UpperCAmelCase_					,						UpperCAmelCase_					,						UpperCAmelCase_						=				0, 0, 0
		UpperCAmelCase_						=				ugly_nums[ia] * 2
		UpperCAmelCase_						=				ugly_nums[ia] * 3
		UpperCAmelCase_						=				ugly_nums[ia] * 5

		for _ in range(1			,     __SCREAMING_SNAKE_CASE ):
				UpperCAmelCase_						=				min(__SCREAMING_SNAKE_CASE			,     __SCREAMING_SNAKE_CASE			,     __SCREAMING_SNAKE_CASE )
				ugly_nums.append(__SCREAMING_SNAKE_CASE )
				if next_num == next_a:
						ia += 1
						UpperCAmelCase_						=				ugly_nums[ia] * 2
				if next_num == next_a:
						ia += 1
						UpperCAmelCase_						=				ugly_nums[ia] * 3
				if next_num == next_a:
						ia += 1
						UpperCAmelCase_						=				ugly_nums[ia] * 5
		return ugly_nums[-1]


if __name__ == "__main__":
			from doctest import testmod

			testmod(verbose=True)
			print(f'''{ugly_numbers(200) = }''')

