class_docstr: Covid19sum Dataset.
class_docstr_tok: ["Covid19sum","Dataset","."]
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(
      self, data_paths: Optional[List[Dict[Text, Any]]] = None
  ) -> Iterator[Tuple[Any, Dict[Text, Any]]]:
      """Yields examples."""
      for d in data_paths:
          path = d.pop("path")
          if tf.io.gfile.exists(path):
              with tf.io.gfile.GFile(path, "rb") as f:
                  data_dict = json.load(f)
                  body_text = data_dict.get(_BODY_TEXT, [])
                  if body_text:
                      d[_BODY_TEXT] = [
                          {k: s[k] for k in [_SECTION, _TEXT]}
                          for s in body_text
                      ]
                      yield d[_SHA], d
  
file_path: datasets/tensorflow_datasets/summarization/covid19sum.py
imports: from __future__ import annotations
  import json
  import os
  from typing import Any, Dict, Iterator, List, Optional, Text, Tuple
  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 Covid19sum obj's underlying member method code with example usage: obj._generate_examples(data_paths) without return types