class_docstr: CycleGAN dataset.
class_docstr_tok: ["CycleGAN","dataset","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Returns SplitGenerators."""
      url = _DL_URLS[self.builder_config.name]
      data_dirs = dl_manager.download_and_extract(url)
  
      path_to_dataset = os.path.join(
          data_dirs, tf.io.gfile.listdir(data_dirs)[0]
      )
  
      train_a_path = os.path.join(path_to_dataset, "trainA")
      train_b_path = os.path.join(path_to_dataset, "trainB")
      test_a_path = os.path.join(path_to_dataset, "testA")
      test_b_path = os.path.join(path_to_dataset, "testB")
  
      return [
          tfds.core.SplitGenerator(
              name="trainA",
              gen_kwargs={
                  "path": train_a_path,
                  "label": "A",
              },
          ),
          tfds.core.SplitGenerator(
              name="trainB",
              gen_kwargs={
                  "path": train_b_path,
                  "label": "B",
              },
          ),
          tfds.core.SplitGenerator(
              name="testA",
              gen_kwargs={
                  "path": test_a_path,
                  "label": "A",
              },
          ),
          tfds.core.SplitGenerator(
              name="testB",
              gen_kwargs={
                  "path": test_b_path,
                  "label": "B",
              },
          ),
      ]
  
file_path: datasets/tensorflow_datasets/image_classification/cycle_gan.py
imports: import os
  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 CycleGAN obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list