class_docstr: DatasetBuilder for cardiotox dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path, is_training):
      """Yields examples."""
      cycle_len = 10 if is_training else 1
      dataset = tf.data.Dataset.list_files(path)
      dataset = dataset.interleave(
          tf.data.TFRecordDataset, cycle_length=cycle_len
      )
      dataset = dataset.map(
          self.info.features.deserialize_example,
          num_parallel_calls=tf.data.experimental.AUTOTUNE,
      )
  
      dataset = tfds.as_numpy(dataset)
      for example in dataset:
          yield example[_EXAMPLE_NAME], example
  
file_path: datasets/tensorflow_datasets/graphs/cardiotox/cardiotox.py
imports: import os
  import numpy
  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 Cardiotox obj's underlying member method code with example usage: obj._generate_examples(path, is_training) without return types