code: def download_superglue_data_and_write_config(
      task_name: str, task_data_path: str, task_config_path: str
  ):
      # Applies to ReCoRD, MultiRC and WSC
      assert task_name not in SQUAD_TASKS
  
      os.makedirs(task_data_path, exist_ok=True)
      download_utils.download_and_unzip(
          DIRECT_SUPERGLUE_TASKS_TO_DATA_URLS[task_name], task_data_path
      )
  
      # Move task data up one folder (nested under task name when unzipped)
      # ie: mv ./record/ReCoRD/* ./record
      nested_task_dir = os.path.join(
          task_data_path,
          filesystem.find_case_insensitive_filename(
              task_name, task_data_path
          ),
      )
      task_data_files = os.listdir(nested_task_dir)
      for f in task_data_files:
          # Overwrite file if it exists (overwrite by full path specification)
          shutil.move(
              os.path.join(nested_task_dir, f),
              os.path.join(task_data_path, f),
          )
      shutil.rmtree(nested_task_dir)
  
      # Supports datasets with non-standard dev dataset name
      if os.path.isfile(os.path.join(task_data_path, "dev.jsonl")):
          dev_data_name = "dev.jsonl"
      elif os.path.isfile(os.path.join(task_data_path, "val.jsonl")):
          dev_data_name = "val.jsonl"
      else:
          raise RuntimeError(
              "Unsupported dev dataset name in downloaded task."
          )
  
      val_path = os.path.join(task_data_path, dev_data_name)
      train_path = os.path.join(task_data_path, "train.jsonl")
      test_path = os.path.join(task_data_path, "test.jsonl")
      py_io.write_json(
          data={
              "task": task_name,
              "paths": {
                  "train": train_path,
                  "val": val_path,
                  "test": test_path,
              },
              "name": task_name,
          },
          path=task_config_path,
      )
  
imports: import json
  import logging
  import os
  import pandas
  import re
  import shutil
  import tarfile
  from operator import itemgetter
  from collections import Counter
  import jiant.scripts.download_data.utils
  import jiant.utils.display
  import jiant.utils.python.filesystem
  import jiant.utils.python.io
  from jiant.scripts.download_data.constants import SQUAD_TASKS, DIRECT_SUPERGLUE_TASKS_TO_DATA_URLS
label_desc: Use image node_id 3 for calling a global function with example usage: download_superglue_data_and_write_config(task_name, task_data_path, task_config_path) without return types