class_docstr: TREC Dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, filepath):
      """Yields examples."""
  
      with tf.io.gfile.GFile(filepath, "rb") as f:
          for id_, row in enumerate(f):
              # One non-ASCII byte: sisterBADBYTEcity. We replace it with a space
              label, _, text = (
                  row.replace(b"\xf0", b" ")
                  .strip()
                  .decode()
                  .partition(" ")
              )
              coarse_label, _, fine_label = label.partition(":")
              yield id_, {
                  "label-coarse": coarse_label,
                  "label-fine": fine_label,
                  "text": text,
              }
  
imports: 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(filepath) without return types