code: def download_piqa_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_file(
          "https://yonatanbisk.com/piqa/data/train.jsonl",
          os.path.join(task_data_path, "train.jsonl"),
      )
      download_utils.download_file(
          "https://yonatanbisk.com/piqa/data/train-labels.lst",
          os.path.join(task_data_path, "train-labels.lst"),
      )
      download_utils.download_file(
          "https://yonatanbisk.com/piqa/data/valid.jsonl",
          os.path.join(task_data_path, "valid.jsonl"),
      )
      download_utils.download_file(
          "https://yonatanbisk.com/piqa/data/valid-labels.lst",
          os.path.join(task_data_path, "valid-labels.lst"),
      )
      download_utils.download_file(
          "https://yonatanbisk.com/piqa/data/tests.jsonl",
          os.path.join(task_data_path, "tests.jsonl"),
      )
  
      py_io.write_json(
          data={
              "task": task_name,
              "paths": {
                  "train": os.path.join(task_data_path, "train.jsonl"),
                  "train_labels": os.path.join(
                      task_data_path, "train-labels.lst"
                  ),
                  "val": os.path.join(task_data_path, "valid.jsonl"),
                  "val_labels": os.path.join(
                      task_data_path, "valid-labels.lst"
                  ),
                  "test": os.path.join(task_data_path, "tests.jsonl"),
              },
              "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 17 for calling a global function with example usage: download_piqa_data_and_write_config(task_name, task_data_path, task_config_path) without return types