def METHOD_NAME(filter_func):
    da = make_histogram2d()
    with pytest.raises(TypeError):
        filter_func(da, size=1.5)
    with pytest.raises(TypeError):
        filter_func(da, size={'x': 2.5, 'y': 3.5})