class_docstr: Extreme Summarization (XSum) Dataset.
class_docstr_tok: ["Extreme","Summarization","(","XSum",")","Dataset","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Returns SplitGenerators."""
      dl_path = dl_manager.download(_URL)
      with tf.io.gfile.GFile(dl_path, "r") as json_file:
          split_ids = json.load(json_file)
      folder_name = "xsum-extracts-from-downloads"
      extract_path = os.path.join(
          dl_manager.extract(
              os.path.join(
                  dl_manager.manual_dir, folder_name + ".tar.gz"
              )
          ),
          folder_name,
      )
      return [
          tfds.core.SplitGenerator(
              name=tfds.Split.TRAIN,
              gen_kwargs={
                  "split_ids": split_ids["train"],
                  "path": extract_path,
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.VALIDATION,
              gen_kwargs={
                  "split_ids": split_ids["validation"],
                  "path": extract_path,
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.TEST,
              gen_kwargs={
                  "split_ids": split_ids["test"],
                  "path": extract_path,
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/summarization/xsum.py
imports: import json
  import os
  from absl import logging
  from etils import epath
  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 Xsum obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list