def METHOD_NAME(launch_mock):
    wandb_resource_mock = MagicMock()
    context = build_op_context(
        resources={
            "wandb_config": {"entity": WANDB_ENTITY, "project": WANDB_PROJECT},
            "wandb_resource": wandb_resource_mock,
        },
    )
    run_launch_agent(context)
    launch_mock.create_and_run_agent.assert_called_with(
        api=wandb_resource_mock.__getitem__.return_value,
        config={"entity": "entity", "project": "project"},
    )
    wandb_resource_mock.__getitem__.assert_has_calls(
        [
            call("api"),
        ],
    )