code: def encrypt_directory_with_key(
      dir_path,
      ip,
      port,
      encrypted_primary_key_path,
      encrypted_data_key_path,
      save_dir=None,
  ):
      file_operator.encrypt_directory_automation(
          ip,
          port,
          dir_path,
          encrypted_primary_key_path,
          encrypted_data_key_path,
          save_dir,
      )
  
file_path: BigDL/python/ppml/src/bigdl/ppml/kms/ehsm/client.py
imports: import argparse
  import os
  import file_operator
  import key_manager
label_desc: Use image node_id 7 for calling a global function with example usage: encrypt_directory_with_key(dir_path, ip, port, encrypted_primary_key_path, encrypted_data_key_path, save_dir) without return types