code: def generate_examples_validation(archive, labels):
      for fname, fobj in archive:
          record = {
              "file_name": fname,
              "image": fobj,
              "label": labels[fname],
          }
          yield fname, record
  
imports: import os
  import tarfile
  from tensorflow_datasets.core.utils.lazy_imports_utils import tensorflow
  import tensorflow_datasets.public_api
label_desc: Use image node_id 3 for calling a global function with example usage: generate_examples_validation(archive, labels) without return types