docs: def _to_image_partial_overlap(self, image):
          """
          Return an image of the mask in a 2D array, where the mask
          is not fully within the image (i.e. partial or no overlap).
          """
  
          # find the overlap of the mask on the output image shape
          slices_large, slices_small = self._overlap_slices(image.shape)
  
          if slices_small is None:
              return None    # no overlap
  
          # insert the mask into the output image
          image[slices_large] = self.data[slices_small]
  
          return image