code: def download_xquad_data_and_write_config(
      task_data_base_path: str, task_config_base_path: str
  ):
      languages = "ar de el en es hi ru th tr vi zh".split()
      for lang in languages:
          task_name = f"xquad_{lang}"
          task_data_path = py_io.create_dir(
              task_data_base_path, task_name
          )
          path = os.path.join(task_data_path, "xquad.json")
          download_utils.download_file(
              url=f"https://raw.githubusercontent.com/deepmind/xquad/master/xquad.{lang}.json",
              file_path=path,
          )
          py_io.write_json(
              data={
                  "task": "xquad",
                  "paths": {"val": path},
                  "name": task_name,
                  "kwargs": {"language": lang},
              },
              path=os.path.join(
                  task_config_base_path, f"{task_name}_config.json"
              ),
          )
  
imports: import copy
  import glob
  import itertools
  import os
  import shutil
  from pathlib import Path
  import jiant.scripts.download_data.utils
  import jiant.utils.display
  import jiant.utils.python.datastructures
  import jiant.utils.python.io
  import jiant.utils.python.filesystem
  import jiant.utils.python.strings
label_desc: Use image node_id 5 for calling a global function with example usage: download_xquad_data_and_write_config(task_data_base_path, task_config_base_path) without return types