code: def create_json_config(
      incoming_trust, outgoing_trust, key, cert, key_store
  ):
      principal_config = {
          "outgoing_trust": outgoing_trust["trust"],
          "outgoing_trust_store": outgoing_trust["trust_store"],
          "incoming_trust": incoming_trust["trust"],
          "incoming_trust_store": incoming_trust["trust_store"],
          "key": key,
          "cert": cert,
          "key_store": key_store,
      }
      config_file = "ssl-config.json"
      with open(config_file, "w") as out:
          out.write(json.dumps(principal_config))
          return [config_file]
  
file_path: hail/tls/create_certs.py
imports: import argparse
  import json
  import shutil
  import subprocess
  import tempfile
  import yaml
label_desc: Use image node_id 4 for calling a global function with example usage: create_json_config(incoming_trust, outgoing_trust, key, cert, key_store) and returns: list