input: from typing import Callable
  
  def create_encryption_app(key: bytes) -> Callable[[str], bytes]:
      """
      Create an application that encrypts a string using the AES cipher in ECB mode.
      The application should return a function that takes a plaintext string and returns
      its encrypted version as bytes.
      
      >>> encrypt_func = create_encryption_app(b'Sixteen byte key')
      >>> encrypt_func('Sample text')
      b'\x8f\x93\xdbM@Gr\xa7EJ\t\xd3\xbb\xb2M0k\x8f\xb1&\xc3\xe5ef\xa9\xa8\xd9\xday-'
      """
output:     from Crypto.Cipher import AES
      from Crypto.Util.Padding import pad
  
      def encrypt_func(plaintext: str) -> bytes:
          cipher = AES.new(key, AES.MODE_ECB)
          padded_plaintext = pad(plaintext.encode(), AES.block_size)
          encrypted_text = cipher.encrypt(padded_plaintext)
          return encrypted_text
  
      return encrypt_func