input: from Crypto.PublicKey import RSA
  
  def generate_key_pair():
      """Generates an RSA public/private key pair and stores them in separate files named 'public.pem' and 'private.pem'.
      >>> generate_key_pair()
      # Check if 'public.pem' and 'private.pem' files are created.
      """
output:     key = RSA.generate(2048)
      with open("private.pem", "wb") as private_file:
          private_file.write(key.export_key())
      with open("public.pem", "wb") as public_file:
          public_file.write(key.publickey().export_key())