input: 
  def generate_key_pair():
      """Generate an RSA public/private key pair and save them in separate files.
      >>> generate_key_pair()
      # Files 'public.pem' and 'private.pem' will be created containing the RSA public and private keys respectively.
      """
  
  
output:     from cryptography.hazmat.primitives.asymmetric import rsa
      from cryptography.hazmat.primitives import serialization
  
      private_key = rsa.generate_private_key(
          public_exponent=65537,
          key_size=2048,
      )
  
      public_key = private_key.public_key()
  
      private_pem = private_key.private_bytes(
          encoding=serialization.Encoding.PEM,
          format=serialization.PrivateFormat.PKCS8,
          encryption_algorithm=serialization.NoEncryption()
      )
  
      public_pem = public_key.public_bytes(
          encoding=serialization.Encoding.PEM,
          format=serialization.PublicFormat.SubjectPublicKeyInfo
      )
  
      with open("private.pem", "wb") as f:
          f.write(private_pem)
  
      with open("public.pem", "wb") as f:
          f.write(public_pem)