def METHOD_NAME():
    from PYME.IO import tabular
    from PYME.IO.image import ImageStack
    from PYME.IO.MetaDataHandler import CachingMDHandler
    size = 10
    x, y, z = np.mgrid[:size, :size, :size]
    points = tabular.DictSource({'x': np.arange(size), 'y': np.zeros(size), 'z': np.zeros(size)})
    # mdh voxelsize units are in um currently, while the voxelsize_nm attributes are used in distance_to_image_mask
    points.mdh = CachingMDHandler({'voxelsize.x': 0.001, 'voxelsize.y': 0.001, 'voxelsize.z':0.001,
                                   'voxelsize.units': 'um'})
    mask = ImageStack(x < 0.5 * size, mdh=points.mdh)
    distances = coordinate_tools.distance_to_image_mask(mask, points)
    np.testing.assert_array_equal(distances, np.arange(size) - 0.5 * size)