code: def write_encrypted_parquet(
      path,
      table,
      encryption_config,
      kms_connection_config,
      crypto_factory,
  ):
      file_encryption_properties = (
          crypto_factory.file_encryption_properties(
              kms_connection_config, encryption_config
          )
      )
      assert file_encryption_properties is not None
      with pq.ParquetWriter(
          path,
          table.schema,
          encryption_properties=file_encryption_properties,
      ) as writer:
          writer.write_table(table)
  
imports: import pytest
  from datetime import timedelta
  import pyarrow
label_desc: Use image node_id 4 for calling a global function with example usage: write_encrypted_parquet(path, table, encryption_config, kms_connection_config, crypto_factory) without return types