code: def fill_blind_pores(im):
      r
      im = sp.copy(im)
      holes = find_disconnected_voxels(im)
      im[holes] = False
      return im
docs: r"""
      Fills all pores that are not connected to the edges of the image.
  
      Parameters
      ----------
      im : ND-array
          The image of the porous material
  
      Returns
      -------
      image : ND-array
          A version of ``im`` but with all the disconnected pores removed.
  
      See Also
      --------
      find_disconnected_voxels