def _generate_examples(self, archive, original_labels, real_labels):
    for (fname, fobj) in archive:
        record = {'file_name': fname, 'image': fobj, 'original_label': original_labels[fname], 'real_label': real_labels[fname]}
        (yield (fname, record))
def _generate_examples(self, archive, original_labels, real_labels):
    for (fname, fobj) in archive:
        record = {'file_name': fname, 'image': fobj, 'original_label': original_labels[fname], 'real_label': real_labels[fname]}
        (yield (fname, record))