code: def mask_images(images: Iterable[SpatialImage], mask: np.ndarray,
                  image_type: type = None) -> Iterable[np.ndarray]:
      
      for images in multimask_images(images, (mask,), image_type):
          yield images[0]
docs: Mask images.
  
      Parameters
      ----------
      images:
          Images to mask.
      mask:
          Mask to apply.
      image_type:
          Type to cast images to.
  
      Yields
      ------
      np.ndarray
          Masked image.