code: def main():
      full_cl_args = zconf.core.get_sys_args()
      assert (
          len(full_cl_args) >= 1
      ), "Require two arguments to start: configurator and out_path"
      configurator_name, config_path, *cl_args = full_cl_args
      configurator = Registry.get_configurator(
          configurator_name=configurator_name
      )
      config_dict = configurator.default_run_cli(
          cl_args=cl_args
      ).create_config()
      os.makedirs(os.path.split(config_path)[0], exist_ok=True)
      py_io.write_json(config_dict, path=config_path)
  
file_path: jiant/jiant/proj/main/scripts/configurator.py
imports: import math
  import os
  import torch
  import jiant.utils.zconf
  import jiant.utils.python.io
  import jiant.utils.python.datastructures
label_desc: Use image node_id 3 for calling a global function with example usage: main() without return types