code: def test_get_env_vars_dict_api_key_override(mocker):
      _setup(mocker)
      mocker.launch_project.launch_spec = {
          "_wandb_api_key": "override-api-key"
      }
  
      resp = build.get_env_vars_dict(
          mocker.launch_project, mocker.api, 10
      )
  
      assert resp == {
          "WANDB_API_KEY": "override-api-key",
          "WANDB_ARTIFACTS": "test-wandb-artifacts",
          "WANDB_BASE_URL": "base_url",
          "WANDB_CONFIG_0": "test-wandb",
          "WANDB_CONFIG_1": "-artifacts",
          "WANDB_DOCKER": "test-docker-image",
          "WANDB_ENTITY": "test-entity",
          "WANDB_LAUNCH": "True",
          "WANDB_LAUNCH_QUEUE_NAME": "test-queue-name",
          "WANDB_LAUNCH_QUEUE_ENTITY": "test-queue-entity",
          "WANDB_LAUNCH_TRACE_ID": "test-run-queue-item-id",
          "WANDB_NAME": "test-name",
          "WANDB_PROJECT": "test-project",
          "WANDB_RUN_ID": "test-run-id",
          "WANDB_SWEEP_ID": "test-sweep-id",
      }
  
file_path: wandb/tests/pytest_tests/unit_tests/test_launch/test_builder/test_build.py
imports: import hashlib
  from unittest.mock import MagicMock
  import pytest
  from wandb.sdk.launch.builder import build
  from wandb.sdk.launch.builder.build import registry_from_uri
  from wandb.sdk.launch.errors import LaunchError
label_desc: Use image node_id 3 for calling a global function with example usage: test_get_env_vars_dict_api_key_override(mocker) without return types