input: Write a python function to encrypt a message using RSA public key and ensure the encryption is successful.
  assert isinstance(encrypt_message(b"Hello World"), tuple)
  assert isinstance(encrypt_message(b"Test Message"), tuple)
  assert isinstance(encrypt_message(b"Another Test"), tuple)
output: def encrypt_message(message: bytes) -> tuple:
      from Crypto.PublicKey import RSA
      from Crypto.Cipher import PKCS1_OAEP
      from Crypto.Random import get_random_bytes
      
      # Generate RSA key pair
      key = RSA.generate(2048)
      
      # Extract the public key
      public_key = key.publickey()
      
      # Encrypt the message
      cipher = PKCS1_OAEP.new(public_key)
      encrypted_message = cipher.encrypt(message)
      
      # Return the encrypted message and the public key (for decryption if needed)
      return (encrypted_message, public_key.export_key())