input: 
  from Crypto.PublicKey import RSA
  
  def generate_key_pair():
      key = RSA.generate(2048)
      pub_key = key.publickey().export_key().decode()
      with open('public.pem', 'w') as file:
          file.write(pub_key)
      
      priv_key = key.export_key().decode()
      with open('private.pem', 'w') as file:
          file.write(priv_key)
      return True
  
  # Example usage:
  # generate_key_pair()
  
output:     return True