def METHOD_NAME(caplog):
    mu = 1.0
    model = pyhf.simplemodels.uncorrelated_background([6], [9], [3])
    data = [9] + model.config.auxdata
    init_pars = model.config.suggested_init()
    par_bounds = model.config.suggested_bounds()
    fixed_params = model.config.suggested_fixed()
    with caplog.at_level(logging.WARNING, "pyhf.infer.test_statistics"):
        pyhf.infer.test_statistics.q0(
            mu, data, model, init_pars, par_bounds, fixed_params
        )
        assert (
            "q0 test statistic only used for fit configuration with POI set to zero"
            in caplog.text
        )
        caplog.clear()