




from datetime import datetime

import matplotlib.pyplot as plt
import torch



def 							_A       (						lowerCAmelCase_					: Any      ):
     """simple docstring"""

     for param in module.parameters():
          lowerCAmelCase__          =			False



def 							_A       (						):
     """simple docstring"""

     lowerCAmelCase__          =			"cuda" if torch.cuda.is_available() else "cpu"
     if torch.backends.mps.is_available() and torch.backends.mps.is_built():
          lowerCAmelCase__          =			"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       (						lowerCAmelCase_					: List[Any]      ):
     """simple docstring"""

     lowerCAmelCase__          =			plt.imshow(lowerCAmelCase_      )
     fig.axes.get_xaxis().set_visible(lowerCAmelCase_      )
     fig.axes.get_yaxis().set_visible(lowerCAmelCase_      )
     plt.show()






def 							_A       (						):
     """simple docstring"""

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






import string



def 							_A       (						lowerCAmelCase_					: str      ):
     """simple docstring"""

     for key in range(len(string.ascii_uppercase      )      ):
          lowerCAmelCase__          =			""
          for symbol in message:
               if symbol in string.ascii_uppercase:
                    lowerCAmelCase__          =			string.ascii_uppercase.find(lowerCAmelCase_      )
                    lowerCAmelCase__          =			num - key
                    if num < 0:
                         lowerCAmelCase__          =			num + len(string.ascii_uppercase      )
                    lowerCAmelCase__          =			translated + string.ascii_uppercase[num]
               else:
                    lowerCAmelCase__          =			translated + symbol
          print(F'Decryption using Key #{key}: {translated}'      )



def 							_A       (						):
     """simple docstring"""

     lowerCAmelCase__          =			input("Encrypted message: "      )
     lowerCAmelCase__          =			message.upper()
     decrypt(lowerCAmelCase_      )


if __name__ == "__main__":
     import doctest

     doctest.testmod()
     main()
