code: def download_data(task_names, output_base_path):
      output_base_path = os.path.abspath(output_base_path)
      task_data_base_path = py_io.create_dir(output_base_path, "data")
      task_config_base_path = py_io.create_dir(
          output_base_path, "configs"
      )
  
      assert set(task_names).issubset(
          SUPPORTED_TASKS
      ), "Following tasks are not support: {}".format(
          ",".join(set(task_names) - SUPPORTED_TASKS)
      )
  
      # Download specified tasks and generate configs for specified tasks
      for i, task_name in enumerate(task_names):
          task_data_path = os.path.join(task_data_base_path, task_name)
  
          if task_name in HF_DATASETS_TASKS:
              hf_datasets_tasks_download.download_data_and_write_config(
                  task_name=task_name,
                  task_data_path=task_data_path,
                  task_config_path=os.path.join(
                      task_config_base_path, f"{task_name}_config.json"
                  ),
              )
          elif task_name in XTREME_TASKS:
              xtreme_download.download_xtreme_data_and_write_config(
                  task_name=task_name,
                  task_data_base_path=task_data_base_path,
                  task_config_base_path=task_config_base_path,
              )
          elif task_name in DIRECT_DOWNLOAD_TASKS:
              files_tasks_download.download_task_data_and_write_config(
                  task_name=task_name,
                  task_data_path=task_data_path,
                  task_config_path=os.path.join(
                      task_config_base_path, f"{task_name}_config.json"
                  ),
              )
          else:
              raise KeyError()
          print(
              f"Downloaded and generated configs for '{task_name}' ({i+1}/{len(task_names)})"
          )
  
file_path: jiant/jiant/scripts/download_data/runscript.py
imports: import os
  import argparse
  import jiant.utils.python.io
  import jiant.scripts.download_data.dl_datasets.hf_datasets_tasks
  import jiant.scripts.download_data.dl_datasets.xtreme
  import jiant.scripts.download_data.dl_datasets.files_tasks
  from jiant.tasks.constants import GLUE_TASKS, SUPERGLUE_TASKS, XTREME_TASKS, BENCHMARKS
  from jiant.scripts.download_data.constants import SQUAD_TASKS, DIRECT_DOWNLOAD_TASKS, OTHER_HF_DATASETS_TASKS
label_desc: Use image node_id 3 for calling a global function with example usage: download_data(task_names, output_base_path) without return types