code: def process_other_set(hdf5_file, which_set, image_archive, patch_archive,
                        groundtruth, offset):
      
      producer = partial(other_set_producer, image_archive=image_archive,
                         patch_archive=patch_archive,
                         groundtruth=groundtruth, which_set=which_set)
      consumer = partial(image_consumer, hdf5_file=hdf5_file,
                         num_expected=len(groundtruth), offset=offset)
      producer_consumer(producer, consumer)
docs: Process the validation or test set.
  
      Parameters
      ----------
      hdf5_file : :class:`h5py.File` instance
          HDF5 file handle to which to write. Assumes `features`, `targets`
          and `filenames` already exist and have first dimension larger than
          `sum(images_per_class)`.
      which_set : str
          Which set of images is being processed. One of 'train', 'valid',
          'test'.  Used for extracting the appropriate images from the patch
          archive.
      image_archive : str or file-like object
          The filename or file-handle for the TAR archive containing images.
      patch_archive : str or file-like object
          Filename or file handle for the TAR archive of patch images.
      groundtruth : iterable
          Iterable container containing scalar 0-based class index for each
          image, sorted by filename.
      offset : int
          The offset in the HDF5 datasets at which to start writing.