code: def _generate_examples(self, archive):
      
      prefix_len = len("SUN397")
      with tf.Graph().as_default():
        with utils.nogpu_session() as sess:
          for filepath, fobj in archive:
            if (filepath.endswith(".jpg") and
                filepath not in _SUN397_IGNORE_IMAGES):
              # Note: all files in the tar.gz are in SUN397/...
              filename = filepath[prefix_len:]
              # Example:
              # From filename: /c/car_interior/backseat/sun_aenygxwhhmjtisnf.jpg
              # To class: /c/car_interior/backseat
              label = "/".join(filename.split("/")[:-1])
              image = _process_image_file(fobj, sess, filepath)
              yield {
                  "file_name": filename,
                  "image": image,
                  "label": label,
              }
docs: Yields examples.