input: Write a function to encrypt a message using RSA public key.
  assert encrypt(b"Hello World") != b"Hello World"
  assert len(encrypt(b"Test Message")) > 0
output: def encrypt(message: bytes) -> bytes:
      from Crypto.PublicKey import RSA
      from Crypto.Cipher import PKCS1_OAEP
      
      # Generate RSA keys (for demonstration purposes)
      key = RSA.generate(2048)
      public_key = key.publickey()
      
      # Encrypt the message
      cipher = PKCS1_OAEP.new(public_key)
      encrypted_message = cipher.encrypt(message)
      
      return encrypted_message