class_docstr: Booksum dataset builder.
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(
      self, dl_manager: tfds.download.DownloadManager
  ):
      """Returns SplitGenerators."""
      granularity = (
          self._builder_config.granularity
      )  # pytype: disable=attribute-error  # always-use-return-annotations
      alignments_base_path = os.path.join(
          dl_manager.manual_dir,
          "booksum",
          "alignments",
          f"{granularity}-level-summary-alignments",
      )
      return {
          "train": self._generate_examples(
              alignments_path=os.path.join(
                  alignments_base_path,
                  _SPLIT_FILENAMES[granularity]["train"],
              ),
              base_path=dl_manager.manual_dir,
              granularity=granularity,
          ),
          "validation": self._generate_examples(
              alignments_path=os.path.join(
                  alignments_base_path,
                  _SPLIT_FILENAMES[granularity]["validation"],
              ),
              base_path=dl_manager.manual_dir,
              granularity=granularity,
          ),
          "test": self._generate_examples(
              alignments_path=os.path.join(
                  alignments_base_path,
                  _SPLIT_FILENAMES[granularity]["test"],
              ),
              base_path=dl_manager.manual_dir,
              granularity=granularity,
          ),
      }
  
file_path: datasets/tensorflow_datasets/datasets/booksum/booksum_dataset_builder.py
imports: import json
  import logging
  import os
  from typing import Dict, Iterator, Text, Tuple
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  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