def METHOD_NAME(use_magic_mock=False, **kwargs: Any) -> "wandb.sdk.wandb_run.Run":
    kwargs_settings = kwargs.pop("settings", dict())
    kwargs_settings = {
        **{
            "run_id": runid.generate_id(),
        },
        **kwargs_settings,
    }
    run = wandb.wandb_sdk.wandb_run.Run(
        settings=test_settings(kwargs_settings), **kwargs
    )
    run._set_backend(
        unittest.mock.MagicMock() if use_magic_mock else mocked_backend
    )
    run._set_globals()
    return run