code: def create_and_write_task_config(
      task_name, task_data_dir, task_config_path
  ):
      task_config_templates = py_io.read_json(
          py_filesystem.get_code_asset_path(
              "assets/simple_api/task_config_templates.json"
          )
      )
      task_config = get_task_config(
          task_config_templates=task_config_templates,
          task_name=task_name,
          task_data_dir=task_data_dir,
      )
      os.makedirs(os.path.split(task_config_path)[0], exist_ok=True)
      py_io.write_json(task_config, task_config_path)
  
file_path: jiant/jiant/proj/main/write_task_configs.py
imports: import os
  import jiant.utils.python.filesystem
  import jiant.utils.python.io
  import jiant.utils.zconf
label_desc: Use image node_id 2 for calling a global function with example usage: create_and_write_task_config(task_name, task_data_dir, task_config_path) without return types