class_docstr: A Shapenet config for loading the original .obj files.
class_docstr_tok: ["A","Shapenet","config","for","loading","the","original",".obj","files","."]
docstr: Yields examples.
  
  The structure of the examples:
  {
    'trimesh': tensorflow_graphics.datasets.features.TriangleMesh
    'label': tensorflow_datasets.features.ClassLabel
    'model_id': tensorflow_datasets.features.Text
  }
  
  Args:
    base_dir: The base directory of shapenet.
    models: The list of models in the split.
docstr_tok: ["Yields","examples",".","The","structure","of","the","examples",":","{","'trimesh","'",":","tensorflow_graphics.datasets.features.TriangleMesh","'label","'",":","tensorflow_datasets.features.ClassLabel","'model_id","'",":","tensorflow_datasets.features.Text","}","Args",":","base_dir",":","The","base","directory","of","shapenet",".","models",":","The","list","of","models","in","the","split","."]
code: def generate_examples(
      self, base_dir, models
  ):  # pytype: disable=signature-mismatch  # overriding-parameter-count-checks
      """Yields examples.
  
      The structure of the examples:
      {
        'trimesh': tensorflow_graphics.datasets.features.TriangleMesh
        'label': tensorflow_datasets.features.ClassLabel
        'model_id': tensorflow_datasets.features.Text
      }
  
      Args:
        base_dir: The base directory of shapenet.
        models: The list of models in the split.
      """
      for model in models:
          synset = model["synset"]
          model_id = model["model_id"]
          model_filepath = os.path.join(
              base_dir, synset, model_id, self.model_subpath
          )
          # If the model doesn't exist, skip it.
          if not tf.io.gfile.exists(model_filepath):
              continue
          yield model_id, {
              "trimesh": model_filepath,
              "label": synset,
              "model_id": model_id,
          }
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  import csv
  import json
  import os
  import textwrap
  import tensorflow.compat.v2
  import tensorflow_datasets
  from tensorflow_datasets import features
  from tensorflow_graphics.datasets import features
label_desc: Use image node_id 4 for calling the MeshConfig obj's underlying member method code with example usage: obj.generate_examples(base_dir, models) without return types