class_docstr: Lost and Found Road Hazard Dataset.
class_docstr_tok: ["Lost","and","Found","Road","Hazard","Dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, **paths):
      """Yields examples."""
      # different file-suffixes dependent on the feature to load
      file_suffix = {
          "image_left": self.builder_config.left_image_string,
          "image_right": self.builder_config.right_image_string,
          "segmentation_label": "gtCoarse_labelIds",
          "instance_id": "gtCoarse_instanceIds",
          "disparity_map": "disparity",
      }
  
      for scene_id in tf.io.gfile.listdir(paths["image_left"]):
          paths_city_root = {
              feat: path.join(feat_dir, scene_id)
              for feat, feat_dir in paths.items()
          }
  
          left_city_root = paths_city_root["image_left"]
          for left_img in tf.io.gfile.listdir(left_city_root):
              image_id = _get_id_from_left_image(left_img)
  
              features = {
                  feat: path.join(
                      paths_city_root[feat],
                      "{}_{}.png".format(image_id, file_suffix[feat]),
                  )
                  for feat in paths
              }
              features["image_id"] = image_id
  
              yield image_id, features
  
file_path: datasets/tensorflow_datasets/datasets/lost_and_found/lost_and_found_dataset_builder.py
imports: from os import path
  import re
  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 Builder obj's underlying member method code with example usage: obj._generate_examples() without return types