code: def kms_factory(kms_connection_configuration):
      return InMemoryKmsClient(kms_connection_configuration)
  
file_path: arrow/python/pyarrow/tests/test_dataset_encryption.py
imports: from datetime import timedelta
  import pyarrow.fs
  import pyarrow
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: kms_factory(kms_connection_configuration) and returns: InMemoryKmsClient