class_docstr: DatasetBuilder for D4RL datasets.
class_docstr_tok: ["DatasetBuilder","for","D4RL","datasets","."]
docstr: Returns SplitGenerators.
docstr_tok: ["Returns","SplitGenerators","."]
code: def _split_generators(
      self, dl_manager: tfds.download.DownloadManager
  ):
      """Returns SplitGenerators."""
      ds_dir = self.builder_config.dataset_dir
      name = self._ds_config.name
      if name == "walker2d" and self.builder_config.name == "v0-mixed":
          # There is a mismatch in the name of the original files, where one of them
          # uses walker instead of walker2d.
          name = "walker"
      ds_name = name + self.builder_config.file_suffix + ".hdf5"
      path = dl_manager.download_and_extract(
          {
              "file_path": (
                  "http://rail.eecs.berkeley.edu/datasets/offline_rl/"
                  + ds_dir
                  + "/"
                  + ds_name
              )
          }
      )
      return {
          "train": self._generate_examples(path),
      }
  
file_path: datasets/tensorflow_datasets/d4rl/dataset_builder.py
imports: from __future__ import annotations
  import dataclasses
  from typing import Any, Dict, FrozenSet, Optional, Type, Union
  import numpy
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  from tensorflow_datasets.d4rl import dataset_utils
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the D4RLDatasetBuilder obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: dict