class_docstr: Stanford Online Products Dataset.
docstr: Images of Product from the Data Directory.
  
  Args:
    file_path: str, path to the Ebay_(train/test/info).txt file. Having
      Columns ['class_id', 'super_class_id', 'path']
  
  Yields:
    Dataset examples.
docstr_tok: ["Images","of","Product","from","the","Data","Directory",".","Args",":","file_path",":","str",",","path","to","the","Ebay_","(","train\/test\/info",")",".txt","file",".","Having","Columns","[","'class_id","'",",","'super_class_id","'",",","'path","'","]","Yields",":","Dataset","examples","."]
code: def _generate_examples(self, file_path):
      """Images of Product from the Data Directory.
  
      Args:
        file_path: str, path to the Ebay_(train/test/info).txt file. Having
          Columns ['class_id', 'super_class_id', 'path']
  
      Yields:
        Dataset examples.
      """
      with tf.io.gfile.GFile(file_path, "r") as file_:
          dataset = csv.DictReader(file_, delimiter=" ")
          for i, row in enumerate(dataset):
              yield i, {
                  "class_id": int(row["class_id"]) - 1,
                  "super_class_id/num": int(row["super_class_id"]) - 1,
                  "super_class_id": _SUPER_CLASSES[
                      int(row["super_class_id"]) - 1
                  ],
                  "image": os.path.join(
                      os.path.dirname(file_path), row["path"]
                  ),
              }
  
file_path: datasets/tensorflow_datasets/datasets/stanford_online_products/stanford_online_products_dataset_builder.py
imports: import csv
  import os
  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(file_path) without return types