def METHOD_NAME(monkeypatch):
    mock_mapi = MockMAPI()
    monkeypatch.setattr(mcli, 'update_run_metadata', mock_mapi.update_run_metadata)
    run_name = 'small_chungus'
    monkeypatch.setenv('RUN_NAME', run_name)
    run_url = 'my_run_url'
    monkeypatch.setenv('WANDB_MODE', 'offline')
    Trainer(model=SimpleModel(), loggers=[
        MosaicMLLogger(),
        WandBLogger(),
    ], callbacks=[
        SetWandBRunURL(run_url),
    ])
    assert mock_mapi.run_metadata[run_name]['mosaicml/wandb/run_url'] == run_url