def METHOD_NAME():
    """
    Test dimension exception 1d.
    """
    def f(x):
        return x**2
    with pytest.raises(ValueError, match=r"y_range should not be input for a 1D model"):
        discretize_model(f, (-10, 11), (-10, 11))