class_docstr: Reddit Dataset.
class_docstr_tok: ["Reddit","Dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, path=None):
      """Yields examples."""
      with tf.io.gfile.GFile(path, "rb") as f:
          for i, line in enumerate(f):
              # possible keys are:
              #   author: string (nullable = true)
              #   body: string (nullable = true)
              #   normalizedBody: string (nullable = true)
              #   content: string (nullable = true)
              #   content_len: long (nullable = true)
              #   summary: string (nullable = true)
              #   summary_len: long (nullable = true)
              #   id: string (nullable = true)
              #   subreddit: string (nullable = true)
              #   subreddit_id: string (nullable = true)
              #   title: string (nullable = true)
              d = json.loads(line)
              if _SUMMARY in d and _DOCUMENT in d:
                  yield i, {
                      k: d.get(k, "")
                      for k in _ADDITIONAL_FEATURES
                      + [_DOCUMENT, _SUMMARY]
                  }
  
file_path: datasets/tensorflow_datasets/datasets/reddit/reddit_dataset_builder.py
imports: from __future__ import annotations
  import json
  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 Builder obj's underlying member method code with example usage: obj._generate_examples(path) without return types