class_docstr: Lsun dataset.
code: def _generate_examples(self, extracted_dir, file_path):
      with tf.Graph().as_default():
          path = os.path.join(extracted_dir, file_path, "data.mdb")
          if not tf.io.gfile.exists(path):
              raise RuntimeError(f"Could not open file {path}!")
          dataset = (
              tfds.core.lazy_imports.tensorflow_io.IODataset.from_lmdb(
                  path
              )
          )
          for i, (id_bytes, jpeg_image) in enumerate(
              tfds.as_numpy(dataset)
          ):
              record = {
                  "id": id_bytes.decode("utf-8"),
                  "image": io.BytesIO(jpeg_image),
              }
              yield i, record
  
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 3 for calling the Lsun obj's underlying member method code with example usage: obj._generate_examples(extracted_dir, file_path) without return types