code: def multimask_images(images: Iterable[SpatialImage],
                       masks: Sequence[np.ndarray], image_type: type = None
                       ) -> Iterable[Sequence[np.ndarray]]:
      
      for image in images:
          yield [mask_image(image, mask, image_type) for mask in masks]
docs: Mask images with multiple masks.
  
      Parameters
      ----------
      images:
          Images to mask.
      masks:
          Masks to apply.
      image_type:
          Type to cast images to.
  
      Yields
      ------
      Sequence[np.ndarray]
          For each mask, a masked image.