def METHOD_NAME(wandb_init, capsys, version, message):
    with mock.patch("wandb.__version__", version):
        run = wandb_init(settings=dict(console="off"))
        run.finish()
        assert message in capsys.readouterr().err