class_docstr: Visual Domain Decathlon Datasets.
docstr: Yields examples.
docstr_tok: ["Yields","examples","."]
code: def _generate_examples(self, images_archive, annotations_path, split):
      """Yields examples."""
      filename_to_label = _get_filename_to_label_map(
          annotations_path=annotations_path,
          dataset_name=self.builder_config.name,
          split=split,
      )
      for image_fname, image_fobj in tfds.download.iter_archive(
          path=images_archive,
          method=tfds.download.ExtractMethod.TAR_STREAM,
      ):
          image_fname = image_fname.replace(
              "\\", "/"
          )  # For windows compatibility
          if image_fname in filename_to_label:
              label = filename_to_label[image_fname]
              example = {
                  "name": image_fname,
                  "image": image_fobj,
                  "label": label,
              }
              yield image_fname, example
  
file_path: datasets/tensorflow_datasets/image_classification/visual_domain_decathlon.py
imports: import json
  import os
  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 VisualDomainDecathlon obj's underlying member method code with example usage: obj._generate_examples(images_archive, annotations_path, split) without return types