code: def download_senteval_data_and_write_config(
      task_name: str, task_data_path: str, task_config_path: str
  ):
      name_map = {
          "senteval_bigram_shift": "bigram_shift",
          "senteval_coordination_inversion": "coordination_inversion",
          "senteval_obj_number": "obj_number",
          "senteval_odd_man_out": "odd_man_out",
          "senteval_past_present": "past_present",
          "senteval_sentence_length": "sentence_length",
          "senteval_subj_number": "subj_number",
          "senteval_top_constituents": "top_constituents",
          "senteval_tree_depth": "tree_depth",
          "senteval_word_content": "word_content",
      }
      dataset_name = name_map[task_name]
      os.makedirs(task_data_path, exist_ok=True)
      # data contains all train/val/test examples, first column indicates the split
      data_path = os.path.join(task_data_path, "data.tsv")
      download_utils.download_file(
          url="https://raw.githubusercontent.com/facebookresearch/SentEval/master/data/probing/"
          f"{dataset_name}.txt",
          file_path=data_path,
      )
      py_io.write_json(
          data={
              "task": task_name,
              "paths": {"data": data_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 21 for calling a global function with example usage: download_senteval_data_and_write_config(task_name, task_data_path, task_config_path) without return types