code: def download_ropes_data_and_write_config(
      task_name: str, task_data_path: str, task_config_path: str
  ):
      os.makedirs(task_data_path, exist_ok=True)
      download_utils.download_and_untar(
          "https://ropes-dataset.s3-us-west-2.amazonaws.com/train_and_dev/"
          "ropes-train-dev-v1.0.tar.gz",
          task_data_path,
      )
      data_phase_list = ["train", "dev"]
      jiant_phase_list = ["train", "val"]
      for data_phase, jiant_phase in zip(
          data_phase_list, jiant_phase_list
      ):
          os.rename(
              os.path.join(
                  task_data_path,
                  "ropes-train-dev-v1.0",
                  f"{data_phase}-v1.0.json",
              ),
              os.path.join(task_data_path, f"{jiant_phase}.json"),
          )
      shutil.rmtree(
          os.path.join(task_data_path, "ropes-train-dev-v1.0")
      )
      py_io.write_json(
          data={
              "task": task_name,
              "paths": {
                  "train": os.path.join(task_data_path, "train.json"),
                  "val": os.path.join(task_data_path, "val.json"),
              },
              "name": task_name,
              "kwargs": {"include_background": True},
          },
          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 19 for calling a global function with example usage: download_ropes_data_and_write_config(task_name, task_data_path, task_config_path) without return types