def METHOD_NAME(self, arguments, image, expected_data, atol):
    for p in TEST_NDARRAYS:
        result = DetectEnvelope(**arguments)(p(image))
        assert_allclose(result, p(expected_data), atol=atol, type_test="tensor")