class_docstr: DatasetBuilder for symmetric_solids dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, images_path, rotations_path):
      """Yields examples."""
      with rotations_path.open("rb") as f:
          rotations = dict(np.load(f))
      for key in rotations:
          rotations[key] = rotations[key].astype(np.float32)
      for image_path in images_path.glob("*.png"):
          fname = image_path.name
          shape_name, image_index = fname.split("_")
          image_index = int(image_index.split(".")[0])
          shape_id = _SHAPE_NAMES.index(shape_name)
          yield fname, {
              "image": image_path,
              "label_shape": shape_id,
              "rotation": rotations[shape_name][image_index, 0],
              "rotations_equivalent": rotations[shape_name][
                  image_index
              ],
          }
  
imports: import numpy
  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(images_path, rotations_path) without return types