code: def download_acceptability_judgments_data_and_write_config(
      task_name: str, task_data_path: str, task_config_path: str
  ):
      dataset_name = {
          "acceptability_definiteness": "definiteness",
          "acceptability_coord": "coordinating-conjunctions",
          "acceptability_whwords": "whwords",
          "acceptability_eos": "eos",
      }[task_name]
      os.makedirs(task_data_path, exist_ok=True)
      # data contains all train/val/test examples
      # metadata contains the split indicators
      # (there are 10 CV folds, we use fold1 by default, see below)
      data_path = os.path.join(task_data_path, "data.json")
      metadata_path = os.path.join(task_data_path, "metadata.json")
      download_utils.download_file(
          url="https://raw.githubusercontent.com/decompositional-semantics-initiative/DNC/master/"
          f"function_words/ACCEPTABILITY/acceptability-{dataset_name}_data.json",
          file_path=data_path,
      )
      download_utils.download_file(
          url="https://raw.githubusercontent.com/decompositional-semantics-initiative/DNC/master/"
          f"function_words/ACCEPTABILITY/acceptability-{dataset_name}_metadata.json",
          file_path=metadata_path,
      )
      py_io.write_json(
          data={
              "task": task_name,
              "paths": {"data": data_path, "metadata": metadata_path},
              "name": task_name,
              "kwargs": {
                  "fold": "fold1"
              },  # use fold1 (out of 10) by default
          },
          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 20 for calling a global function with example usage: download_acceptability_judgments_data_and_write_config(task_name, task_data_path, task_config_path) without return types