code: def make_rsa_keypair(bits):
      
      private_key = rsa.generate_private_key(
          public_exponent=65537,
          key_size=bits,
          backend=default_backend(),
      )
      private_pem = private_key.private_bytes(
          encoding=serialization.Encoding.PEM,
          format=serialization.PrivateFormat.TraditionalOpenSSL,
          encryption_algorithm=serialization.NoEncryption(),
      )
      public_pem = private_key.public_key().public_bytes(
          encoding=serialization.Encoding.PEM,
          format=serialization.PublicFormat.SubjectPublicKeyInfo,
      )
      return private_pem, public_pem
docs: Generate an RSA keypair.
  
      Args:
          bits (int): number of bits to use for the key.
  
      Returns:
          (private_key, public_key) - both as PEM encoded strings