def METHOD_NAME(self):
    np.random.seed(0)
    image = np.random.uniform(size=(10,10))
    mask = np.ones((10,10),bool)
    image[2:7,3:8] = 1
    expected = self.function(image)
    result = cpms.smooth_with_function_and_mask(image, self.function, mask)
    self.assertTrue(np.all(np.abs(result - expected) < .00001))