def METHOD_NAME(
    func,
    y_opt,
    bounds,
    acq_optimizer,
    acq_func,
    margin,
    n_calls,
    n_initial_points=10,
    init_gen="random",
):
    r = gp_minimize(
        func,
        bounds,
        acq_optimizer=acq_optimizer,
        acq_func=acq_func,
        n_initial_points=n_initial_points,
        n_calls=n_calls,
        random_state=1,
        initial_point_generator=init_gen,
        noise=1e-10,
    )
    assert r.fun < y_opt + margin