class_docstr: This is a dataset for classifying news articles into 4 classes.
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Returns SplitGenerators."""
      dl_paths = dl_manager.download_and_extract(
          {"ag_news_csv": _DOWNLOAD_URL}
      )
      # Name of the extracted folder is 'ag_news_csv'
      base_path = os.path.join(dl_paths["ag_news_csv"], "ag_news_csv")
  
      return [
          tfds.core.SplitGenerator(
              name=tfds.Split.TRAIN,
              gen_kwargs={"path": os.path.join(base_path, "train.csv")},
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.TEST,
              gen_kwargs={"path": os.path.join(base_path, "test.csv")},
          ),
      ]
  
file_path: datasets/tensorflow_datasets/datasets/ag_news_subset/ag_news_subset_dataset_builder.py
imports: import csv
  import os
  from etils import epath
  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: list