class_docstr: This is a mock class implementation of KmsClient, built for testing
  only.
docstr: Not a secure cipher - the wrapped key
  is just the master key concatenated with key bytes
docstr_tok: ["Not","a","secure","cipher","-","the","wrapped","key","is","just","the","master","key","concatenated","with","key","bytes"]
code: def wrap_key(self, key_bytes, master_key_identifier):
      """Not a secure cipher - the wrapped key
      is just the master key concatenated with key bytes"""
      master_key_bytes = self.master_keys_map[
          master_key_identifier
      ].encode("utf-8")
      wrapped_key = b"".join([master_key_bytes, key_bytes])
      result = base64.b64encode(wrapped_key)
      return result
  
file_path: arrow/python/pyarrow/tests/parquet/encryption.py
imports: import base64
  import pyarrow.parquet.encryption
label_desc: Use image node_id 2 for calling the InMemoryKmsClient obj's underlying member method code with example usage: obj.wrap_key(key_bytes, master_key_identifier) and returns: result