class_docstr: DatasetBuilder for media_sum dataset.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(
      self, split_ids: List[str], raw_samples: List[str]
  ):
      """Yields examples."""
      beam = tfds.core.lazy_imports.apache_beam
  
      def _process_example(sample):
          example = {}
          for k in self.info.features.keys():
              try:
                  example[k] = sample[k]
              # Some of the keys are optional.
              except KeyError:
                  example[k] = ""
          return example["id"], example
  
      return (
          beam.Create(raw_samples)
          | "Select raw samples with the correct split id"
          >> beam.Filter(lambda x: x["id"] in split_ids)
          | "Process and yield examples" >> beam.Map(_process_example)
      )
  
file_path: datasets/tensorflow_datasets/datasets/media_sum/media_sum_dataset_builder.py
imports: import json
  from typing import List
  from etils import epath
  import tensorflow_datasets.public_api
label_desc: Use image node_id 4 for calling the Builder obj's underlying member method code with example usage: obj._generate_examples(split_ids, raw_samples) and returns: unknown, example,  example