class_docstr: DatasetBuilder for squad_question_generation dataset.
class_docstr_tok: ["DatasetBuilder","for","squad_question_generation","dataset","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Returns SplitGenerators."""
      dl_paths = dl_manager.download_and_extract(
          self.builder_config.data_urls
      )
  
      if self.builder_config.name == "split_du":
          return {
              tfds.Split.TRAIN: self._generate_examples(
                  dl_paths["train"]
              ),
              tfds.Split.VALIDATION: self._generate_examples(
                  dl_paths["dev"]
              ),
              tfds.Split.TEST: self._generate_examples(
                  dl_paths["test"]
              ),
          }
      elif self.builder_config.name == "split_zhou":
          mapping_dir = os.path.join(
              dl_paths["mapping"], "qas_id_in_squad"
          )
          redistribute_raw_dir = os.path.join(
              dl_paths["redistribute"], "redistribute/raw"
          )
          return {
              tfds.Split.TRAIN: self._generate_examples(
                  dl_paths["train"],
                  os.path.join(mapping_dir, "train.txt.id"),
                  os.path.join(redistribute_raw_dir, "train.txt"),
              ),
              tfds.Split.VALIDATION: self._generate_examples(
                  dl_paths["dev"],
                  os.path.join(mapping_dir, "dev.txt.shuffle.dev.id"),
                  os.path.join(
                      redistribute_raw_dir, "dev.txt.shuffle.dev"
                  ),
              ),
              tfds.Split.TEST: self._generate_examples(
                  dl_paths["dev"],
                  os.path.join(mapping_dir, "dev.txt.shuffle.test.id"),
                  os.path.join(
                      redistribute_raw_dir, "dev.txt.shuffle.test"
                  ),
              ),
          }
  
file_path: datasets/tensorflow_datasets/text/squad_question_generation/squad_question_generation.py
imports: import json
  import os
  import textwrap
  from etils import epath
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
  from tensorflow_datasets.question_answering import qa_utils
label_desc: Use image node_id 2 for calling the SquadQuestionGeneration obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: dict, dict