def METHOD_NAME(self):
    from ilastik.workflows.carving.carvingTools import parallel_filter
    # tests the filters used for carving
    filter_names = ["gaussianSmoothing", "hessianOfGaussianEigenvalues", "gaussianGradientMagnitude"]
    sigmas = [0.7, 1.6, 3.2]
    shape = 2 * (256,)
    x = numpy.random.rand(*shape).astype("float32")
    for filt in filter_names:
        filt_fu = getattr(fastfilters, filt)
        for sig in sigmas:
            res = parallel_filter(filt, x, sig, max_workers=4)
            exp = filt_fu(x, sig)
            assert res.shape == exp.shape
            assert numpy.allclose(res, exp)