class_docstr: NEWSROOM Dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, input_file=None):
      """Yields examples."""
      with epath.Path(input_file).open() as f:
          for i, line in enumerate(f):
              d = json.loads(line)
              # fields are "url", "archive", "title", "date", "text",
              #  "compression_bin", "density_bin", "summary", "density",
              #  "compression', "coverage", "coverage_bin",
              yield i, {
                  k: d[k]
                  for k in [_DOCUMENT, _SUMMARY]
                  + _ADDITIONAL_TEXT_FEATURES
                  + _ADDITIONAL_FLOAT_FEATURES
              }
  
file_path: datasets/tensorflow_datasets/datasets/newsroom/newsroom_dataset_builder.py
imports: import json
  import os
  from etils import epath
  import numpy
  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(input_file) without return types