class_docstr: Lsun dataset.
code: def _split_generators(self, dl_manager):
      if self.builder_config.name in _SCENES_CATEGORIES:
          extracted_dirs = dl_manager.download_and_extract(
              {
                  "train": LSUN_SCENE_URL
                  % (self.builder_config.name, "train"),
                  "val": LSUN_SCENE_URL
                  % (self.builder_config.name, "val"),
              }
          )
          return [
              tfds.core.SplitGenerator(
                  name=tfds.Split.TRAIN,
                  gen_kwargs={
                      "extracted_dir": extracted_dirs["train"],
                      "file_path": "%s_%s_lmdb"
                      % (
                          self.builder_config.name,
                          "train",
                      ),
                  },
              ),
              tfds.core.SplitGenerator(
                  name=tfds.Split.VALIDATION,
                  gen_kwargs={
                      "extracted_dir": extracted_dirs["val"],
                      "file_path": "%s_%s_lmdb"
                      % (self.builder_config.name, "val"),
                  },
              ),
          ]
      else:
          extracted_dirs = dl_manager.download_and_extract(
              {
                  "train": LSUN_OBJECT_URL % self.builder_config.name,
              }
          )
          return [
              tfds.core.SplitGenerator(
                  name=tfds.Split.TRAIN,
                  gen_kwargs={
                      "extracted_dir": extracted_dirs["train"],
                      "file_path": self.builder_config.name,
                  },
              )
          ]
  
file_path: datasets/tensorflow_datasets/image/lsun.py
imports: import io
  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 Lsun obj's underlying member method code with example usage: obj._split_generators(dl_manager) and returns: list, list