class_docstr: DatasetBuilder for bot_adversarial_dialogue dataset.
class_docstr_tok: ["DatasetBuilder","for","bot_adversarial_dialogue","dataset","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(
      self, dl_manager: tfds.download.DownloadManager
  ):
      """Returns SplitGenerators."""
  
      bot_adversarial_dialogue_home = (
          "http://parl.ai/downloads/bot_adversarial_dialogue/"
      )
  
      if self.builder_config.name == "dialogue_datasets":
          path = dl_manager.download_and_extract(
              os.path.join(
                  bot_adversarial_dialogue_home,
                  f"dialogue_datasets_{_BOT_ADVERSARIAL_DIALOGUE_DATASETS_VERSION}.tar.gz",
              )
          )
          folder_name = "bot_adversarial_dialogue_datasets_with_persona"
          return {
              "train": self._generate_examples(
                  path / f"{folder_name}/train.txt",
                  split_name="train",
              ),
              "valid": self._generate_examples(
                  path / f"{folder_name}/valid.txt",
                  split_name="valid",
              ),
              "test": self._generate_examples(
                  path / f"{folder_name}/test.txt",
                  split_name="test",
              ),
          }
  
      else:
          path = dl_manager.download_and_extract(
              os.path.join(
                  bot_adversarial_dialogue_home,
                  f"human_nonadv_safety_eval_{_HUMAN_NONADV_SAFETY_EVAL_TESTSET_VERSION}.tar.gz",
              )
          )
  
          return {
              "test": self._generate_examples(
                  path / "human_nonadv_safety_eval/test.txt",
                  split_name="human_nonadv_safety_eval",
              ),
          }
  
file_path: datasets/tensorflow_datasets/datasets/bot_adversarial_dialogue/bot_adversarial_dialogue_dataset_builder.py
imports: import os
  from typing import Any, Mapping
  from etils import epath
  import numpy
  from tensorflow_datasets.core.utils import bool_utils
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the Builder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: dict, dict