class_docstr: TyDi QA: Information-Seeking QA in Typologically Diverse Languages.
code: def _split_generators(self, dl_manager):
      urls_to_download = {
          "train": _GOLD_URL_PREFIX + "train.json",
          "validation": _GOLD_URL_PREFIX + "dev.json",
          "lang-validation": _GOLD_URL_PREFIX + "dev.tgz",
      }
      for lang_iso in LANGUAGES:
          if lang_iso == "en":
              continue
          urls_to_download[
              f"translate-train-{lang_iso}"
          ] = _GOLD_TRANSLATE_URL_FORMAT.format(lang_iso=lang_iso)
      downloaded_files = dl_manager.download_and_extract(
          urls_to_download
      )
  
      return (
          [
              tfds.core.SplitGenerator(
                  name=tfds.Split.TRAIN,
                  gen_kwargs={"filepath": downloaded_files["train"]},
              ),
              tfds.core.SplitGenerator(
                  name=tfds.Split.VALIDATION,
                  gen_kwargs={
                      "filepath": downloaded_files["validation"]
                  },
              ),
          ]
          + [
              tfds.core.SplitGenerator(  # pylint:disable=g-complex-comprehension
                  name=f"validation-{lang_iso}",
                  gen_kwargs={
                      "filepath": os.path.join(
                          downloaded_files["lang-validation"],
                          f"tydiqa-goldp-v1.1-dev/tydiqa-goldp-dev-{lang_name}.json",
                      )
                  },
              )
              for lang_iso, lang_name in LANGUAGES.items()
          ]
          + [
              tfds.core.SplitGenerator(  # pylint:disable=g-complex-comprehension
                  name=f"translate-train-{lang_iso}",
                  gen_kwargs={
                      "filepath": downloaded_files[
                          f"translate-train-{lang_iso}"
                      ]
                  },
              )
              for lang_iso, lang_name in LANGUAGES.items()
              if lang_iso != "en"
          ]
      )
  
file_path: datasets/tensorflow_datasets/question_answering/tydi_qa.py
imports: import os
  import tensorflow_datasets.public_api
  from tensorflow_datasets.question_answering import qa_utils
label_desc: Use image node_id 2 for calling the TydiQA obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: unknown