code: def test_launch_agent_project_environment_variable(
      runner,
      test_settings,
      live_mock_server,
      monkeypatch,
  ):
      monkeypatch.setenv("WANDB_PROJECT", "test_project")
      monkeypatch.setattr(
          "wandb.sdk.launch.agent.LaunchAgent.run_job",
          lambda a, b: raise_(KeyboardInterrupt),
      )
      result = runner.invoke(cli.launch_agent)
      assert (
          "You must specify a project name or set WANDB_PROJECT environment variable."
          not in str(result.output)
      )
  
imports: import json
  import os
  from unittest.mock import Mock
  import pytest
  import wandb
  from wandb.apis import public
  from wandb.cli import cli
  from .test_launch import mock_load_backend, mocked_fetchable_git_repo
label_desc: Use image node_id 17 for calling a global function with example usage: test_launch_agent_project_environment_variable(runner, test_settings, live_mock_server, monkeypatch) without return types