class_docstr: ModelNet40.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, filename_list_path):
      """Yields examples."""
  
      ancestor_path = os.path.dirname(
          os.path.dirname(filename_list_path)
      )
      with tf.io.gfile.GFile(filename_list_path, "r") as fid:
          filename_list = fid.readlines()
      filename_list = [line.rstrip()[5:] for line in filename_list]
  
      example_key = -1  # as yield exists, need to pre-increment
      for filename in filename_list:
          h5path = os.path.join(ancestor_path, filename)
  
          with h5py.File(h5path, "r") as h5file:
              points = h5file["data"][:]  # shape=(2048, 2048, 3)
              label = h5file["label"][:]  # shape=(2048, )
  
              models_per_file = points.shape[0]
              for imodel in range(models_per_file):
                  example_key += 1
                  yield example_key, {
                      "points": points[imodel, :, :],
                      "label": int(label[imodel]),
                  }
  
file_path: graphics/tensorflow_graphics/datasets/modelnet40/modelnet40.py
imports: import os
  import h5py
  import tensorflow
  import tensorflow_datasets
label_desc: Use image node_id 4 for calling the ModelNet40 obj's underlying member method code with example usage: obj._generate_examples(filename_list_path) without return types