class_docstr: CLEVR dataset.
docstr: Returns splits.
code: def _split_generators(self, dl_manager):
      """Returns splits."""
      path = dl_manager.download_and_extract(_DOWNLOAD_URL)
  
      images_path_dir = os.path.join(path, "CLEVR_v1.0/images")
      questions_path_dir = os.path.join(path, "CLEVR_v1.0/questions")
      scenes_path_dir = os.path.join(path, "CLEVR_v1.0/scenes")
  
      splits = []
      for split_name in ["train", "val", "test"]:
          name_map = {
              "train": tfds.Split.TRAIN,
              "val": tfds.Split.VALIDATION,
              "test": tfds.Split.TEST,
          }
          splits.append(
              tfds.core.SplitGenerator(
                  name=name_map[split_name],
                  gen_kwargs={
                      "images_dir_path": os.path.join(
                          images_path_dir, split_name
                      ),
                      "question_file": os.path.join(
                          questions_path_dir,
                          "CLEVR_{}_questions.json".format(split_name),
                      ),
                      "scenes_description_file": os.path.join(
                          scenes_path_dir,
                          "CLEVR_{}_scenes.json".format(split_name),
                      ),
                  },
              )
          )
  
      return splits
  
file_path: datasets/tensorflow_datasets/datasets/clevr/clevr_dataset_builder.py
imports: import collections
  import json
  import os
  from etils import epath
  import numpy
  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: splits