class_docstr: Blood Cell Count and Detection Dataset.
class_docstr_tok: ["Blood","Cell","Count","and","Detection","Dataset","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Returns SplitGenerators."""
  
      train_list = []
      test_list = []
      val_list = []
  
      dl_path = dl_manager.download_and_extract(_DOWNLOAD_URL)
      # Name of the extracted folder is 'BCCD_Dataset-1.0'
      extracted_dir_path = os.path.join(dl_path, "BCCD_Dataset-1.0")
      splits_dir_path = os.path.join(
          extracted_dir_path, "BCCD", "ImageSets", "Main"
      )
  
      for root, _, filename in tf.io.gfile.walk(splits_dir_path):
          for fname in filename:
              full_file_name = os.path.join(root, fname)
              with epath.Path(full_file_name).open() as f:
                  for line in f:
                      if fname == "train.txt":
                          train_list.append(line)
                      elif fname == "test.txt":
                          test_list.append(line)
                      elif fname == "val.txt":
                          val_list.append(line)
  
      return [
          tfds.core.SplitGenerator(
              name=tfds.Split.TRAIN,
              gen_kwargs={
                  "file_names": train_list,
                  "extracted_dir_path": extracted_dir_path,
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.VALIDATION,
              gen_kwargs={
                  "file_names": val_list,
                  "extracted_dir_path": extracted_dir_path,
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.TEST,
              gen_kwargs={
                  "file_names": test_list,
                  "extracted_dir_path": extracted_dir_path,
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/datasets/bccd/bccd_dataset_builder.py
imports: import collections
  import os
  import xml.etree.ElementTree
  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 Builder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list