class_docstr: Waymo Open Dataset.
class_docstr_tok: ["Waymo","Open","Dataset","."]
docstr: Returns the SplitGenerators.
  
  Args:
    dl_manager: Download manager object.
  
  Returns:
    SplitGenerators.
docstr_tok: ["Returns","the","SplitGenerators",".","Args",":","dl_manager",":","Download","manager","object",".","Returns",":","SplitGenerators","."]
code: def _split_generators(self, dl_manager):
      """Returns the SplitGenerators.
  
      Args:
        dl_manager: Download manager object.
  
      Returns:
        SplitGenerators.
      """
  
      # Training set
      train_files = tf.io.gfile.glob(
          os.path.join(
              self.builder_config.cloud_bucket,
              "training/segment*camera*",
          )
      )
      logging.info("Train files: %s", train_files)
  
      # Validation set
      validation_files = tf.io.gfile.glob(
          os.path.join(
              self.builder_config.cloud_bucket,
              "validation/segment*camera*",
          )
      )
      logging.info("Validation files: %s", validation_files)
  
      split_generators = [
          tfds.core.SplitGenerator(
              name=tfds.Split.TRAIN,
              gen_kwargs={
                  "tf_record_files": train_files,
              },
          ),
          tfds.core.SplitGenerator(
              name=tfds.Split.VALIDATION,
              gen_kwargs={
                  "tf_record_files": validation_files,
              },
          ),
      ]
  
      # Testing set (Only available in Waymo Open Dataset v1.2)
      if self.builder_config.name == "v_1_2":
          test_files = tf.io.gfile.glob(
              os.path.join(
                  self.builder_config.cloud_bucket,
                  "testing/segment*camera*",
              )
          )
          logging.info("Testing files: %s", test_files)
  
          split_generators.append(
              tfds.core.SplitGenerator(
                  name=tfds.Split.TEST,
                  gen_kwargs={
                      "tf_record_files": test_files,
                  },
              )
          )
  
      return split_generators
  
file_path: datasets/tensorflow_datasets/object_detection/waymo_open_dataset.py
imports: from __future__ import annotations
  import os
  from absl import logging
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.proto import waymo_dataset_pb2
  import tensorflow_datasets.public_api
label_desc: Use image node_id 2 for calling the WaymoOpenDataset obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: split_generators