class_docstr: DatasetBuilder for diamonds dataset.
class_docstr_tok: ["DatasetBuilder","for","diamonds","dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, file_path):
      """Yields examples."""
      pd = tfds.core.lazy_imports.pandas
  
      with epath.Path(file_path).open() as f:
          df = pd.read_csv(f)
  
      for row in df.itertuples():
          yield row.Index, {
              "features": {
                  k: getattr(row, k) for k in _features().keys()
              },
              "price": row.price,
          }
  
file_path: datasets/tensorflow_datasets/structured/diamonds/diamonds.py
imports: from __future__ import annotations
  import collections
  from etils import epath
  import numpy
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling the Diamonds obj's underlying member method code with example usage: obj._generate_examples(file_path) without return types