def METHOD_NAME(
    continuous_search_space: ContinuousSearchSpace, num_points: int
):
    with pytest.raises(ValueError):
        continuous_search_space.sample(num_points=num_points, key=jr.PRNGKey(42))