code: def create_and_write_task_configs(
      task_name_list, data_dir, task_config_base_path
  ):
      os.makedirs(task_config_base_path, exist_ok=True)
      task_config_path_dict = {}
      for task_name in task_name_list:
          task_config_path = os.path.join(
              task_config_base_path, f"{task_name}_config.json"
          )
          write_task_configs.create_and_write_task_config(
              task_name=task_name,
              task_data_dir=os.path.join(data_dir, task_name),
              task_config_path=task_config_path,
          )
          task_config_path_dict[task_name] = task_config_path
      return task_config_path_dict
  
file_path: jiant/jiant/proj/simple/runscript.py
imports: import os
  import torch
  from transformers import AutoConfig
  import jiant.proj.main.write_task_configs
  import jiant.proj.main.export_model
  import jiant.proj.main.tokenize_and_cache
  import jiant.proj.main.scripts.configurator
  import jiant.proj.main.runscript
  import jiant.shared.distributed
  import jiant.utils.zconf
  import jiant.utils.python.io
  from jiant.utils.python.logic import replace_none
  from jiant.utils.python.io import read_json
label_desc: Use image node_id 1 for calling a global function with example usage: create_and_write_task_configs(task_name_list, data_dir, task_config_base_path) and returns: task_config_path_dict