code: def export_parameters(output_file):
      input = json.loads(os.environ.get("METAFLOW_PARAMETERS", "{}"))
      with open(output_file, "w") as f:
          for k in input:
              # Replace `-` with `_` is parameter names since `-` isn't an
              # allowed character for environment variables. cli.py will
              # correctly translate the replaced `-`s.
              f.write(
                  "export METAFLOW_INIT_%s=%s\n"
                  % (k.upper().replace("-", "_"), json.dumps(input[k]))
              )
      os.chmod(output_file, 509)
  
imports: import os
  import json
  import sys
label_desc: Use image node_id 1 for calling a global function with example usage: export_parameters(output_file) without return types