class_docstr: DatasetBuilder for s3o4d dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(
      self,
      dl_manager: tfds.download.DownloadManager,
      img_path,
      latent_path,
      label,
  ):
      """Yields examples."""
      with tf.io.gfile.GFile(latent_path, "rb") as f:
          latents = dict(np.load(f))
      for key in latents:
          latents[key] = latents[key].astype(np.float32)
      for fname, fobj in dl_manager.iter_archive(img_path):
          idx = int(fname[-9:-4]) % 80000
          yield label + "_" + fname[-9:-4], {
              "image": fobj,
              "label": label,
              "illumination": latents["illumination"][idx],
              "pose_mat": latents["pose_mat"][idx],
              "pose_quat": latents["pose_quat"][idx],
          }
  
file_path: datasets/tensorflow_datasets/datasets/s3o4d/s3o4d_dataset_builder.py
imports: import itertools
  import numpy
  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(dl_manager, img_path, latent_path, label) without return types