

'''simple docstring'''
from datetime import datetime

import matplotlib.pyplot as plt
import torch







def 					_A		(	snake_case     )			->	Union[str, Any]:
   for param in module.parameters():
      _lowercase			:      Union[str, Any]			     =   False







def 					_A		(	)			->	int:
   _lowercase			:      Tuple			     =   '''cuda''' if torch.cuda.is_available() else '''cpu'''
   if torch.backends.mps.is_available() and torch.backends.mps.is_built():
      _lowercase			:      List[Any]			     =   '''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 					_A		(	snake_case     )			->	str:
   _lowercase			:      str			     =   plt.imshow(lowerCAmelCase__     )
   fig.axes.get_xaxis().set_visible(lowerCAmelCase__     )
   fig.axes.get_yaxis().set_visible(lowerCAmelCase__     )
   plt.show()







def 					_A		(	)			->	List[Any]:
   _lowercase			:      Union[str, Any]			     =   datetime.now()
   _lowercase			:      str			     =   current_time.strftime("%H:%M:%S"     )
   return timestamp








def    __UpperCamelCase     (				lowerCAmelCase__							:				str  ):
 if n_term == "":
  return []
 __a :  list						=  []
 for temp in range(int(lowerCAmelCase__  )  ):
  series.append(f"1/{temp + 1}" if series else '''1'''  )
 return series


if __name__ == "__main__":
      lowercase__       =input('Enter the last number (nth term) of the Harmonic Series')
      print('Formula of Harmonic Series => 1+1/2+1/3 ..... 1/n')
      print(harmonic_series(nth_term))
