code: def add_all_images(handles, image_set, object_set):
      """Add all images to the handles structure passed
  
      Add images to the handles structure, for example in the Python sandwich.
      """
      images = {}
      for provider in image_set.providers:
          name = provider.name()
          image = image_set.get_image(name)
          images[name] = image.image
          if image.has_mask:
              images["CropMask" + name] = image.mask
  
      for object_name in object_set.object_names:
          objects = object_set.get_objects(object_name)
          images["Segmented" + object_name] = objects.segmented
          if objects.has_unedited_segmented():
              images[
                  "UneditedSegmented" + object_name
              ] = objects.unedited_segmented
          if objects.has_small_removed_segmented():
              images[
                  "SmallRemovedSegmented" + object_name
              ] = objects.small_removed_segmented
  
      npy_images = numpy.ndarray(
          (1, 1), dtype=make_cell_struct_dtype(list(images.keys()))
      )
      for key, image in list(images.items()):
          npy_images[key][0, 0] = image
      handles[PIPELINE] = npy_images
  
imports: import bisect
  import re
  import numpy
  from ...constants.pipeline import make_cell_struct_dtype
  from ...constants.pipeline import PIPELINE
  from ...constants.pipeline import IMAGE_PLANE_DESCRIPTOR_VERSION
  from ...constants.pipeline import H_PLANE_COUNT
  from ...constants.pipeline import H_URL
  from ...constants.pipeline import H_SERIES
  from ...constants.pipeline import H_INDEX
  from ...constants.pipeline import H_CHANNEL
  from ...constants.pipeline import RF_STATE_PREQUOTE
  from ...constants.pipeline import RF_STATE_FIELD
  from ...constants.pipeline import RF_STATE_BACKSLASH_ESCAPE
  from ...constants.pipeline import RF_STATE_SEPARATOR
  from ..legacy import cmp
label_desc: Use image node_id 1 for calling a global function with example usage: add_all_images(handles, image_set, object_set) without return types