class_docstr: OPUS is a collection of translated texts from the web.
code: def _generate_examples(self, subsets):
      source, target = self.builder_config.language_pair
  
      for item in subsets:
          logging.info("Generating examples from: %s", item["name"])
          source_file = item["source_file"]
          target_file = item["target_file"]
  
          gens = [_gen_line(source_file), _gen_line(target_file)]
          for idx, (source_sent, target_sent) in enumerate(zip(*gens)):
              result = {source: source_sent, target: target_sent}
              if all(result.values()):
                  key = "%s/%d" % (item["name"], idx)
                  yield key, result
  
file_path: datasets/tensorflow_datasets/datasets/opus/opus_dataset_builder.py
imports: import os
  from absl import logging
  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(subsets) without return types