def METHOD_NAME(wandb_init):
    config = {
        "foo": 1,
        "bar": 2,
        "baz": 3,
    }
    run = wandb_init(
        reinit=True, resume=True, config=config, config_exclude_keys=("bar",)
    )
    assert run.config["foo"] == 1
    assert run.config["baz"] == 3
    assert "bar" not in run.config
    run.finish()
    run = wandb_init(
        reinit=True, resume=True, config=config, config_include_keys=("bar",)
    )
    assert run.config["bar"] == 2
    assert "foo" not in run.config
    assert "baz" not in run.config
    run.finish()
    with pytest.raises(
        wandb.errors.UsageError,
        match="Expected at most only one of exclude or include",
    ):
        wandb_init(
            reinit=True,
            resume=True,
            config=config,
            config_include_keys=("bar",),
            config_exclude_keys=("bar",),
        )