def METHOD_NAME(self):
    """Test with a masked image"""
    labels = np.ones((10, 20), int)
    np.random.seed(12)
    image = np.random.uniform(size=(10, 20)).astype(np.float32)
    image[:, :10] *= 0.5
    mask = np.ones((10, 20), bool)
    mask[:, 10:] = False
    # Masked haralick
    hm = haralick.Haralick(image, labels, 0, 1, mask=mask)
    # Expected haralick
    he = haralick.Haralick(image[:, :10], labels[:, :10], 0, 1)
    for measured, expected in zip(hm.all(), he.all()):
        self.assertEqual(measured, expected)