class_docstr: The WebVid dataset builder.
class_docstr_tok: ["The","WebVid","dataset","builder","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(
      self, dl_manager: tfds.download.DownloadManager
  ):
      """Returns SplitGenerators."""
  
      def get_captions_path(glob):
          paths = list(epath.Path(dl_manager.manual_dir).glob(glob))
          if len(paths) != 1:
              raise ValueError(
                  f"Invalid amount of glob results in {paths} for"
                  f" {dl_manager.manual_dir}/{glob}."
              )
          return paths[0]
  
      return {
          "train": self._generate_examples(
              captions_csv_path=get_captions_path(_TRAIN_CAPTIONS_GLOB),
              image_base_path=dl_manager.manual_dir,
          ),
          "validation": self._generate_examples(
              captions_csv_path=get_captions_path(_VAL_CAPTIONS_GLOB),
              image_base_path=dl_manager.manual_dir,
          ),
      }
  
file_path: datasets/tensorflow_datasets/datasets/webvid/webvid_dataset_builder.py
imports: import io
  import os
  import pathlib
  import subprocess
  from typing import List
  from absl import logging
  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: dict, paths