code: def test_launch_wandb_init_launch_envs(
      relay_server, runner, user, wandb_init, test_settings
  ):
      queue = "test-queue-name"
      with runner.isolated_filesystem(), mock.patch.dict(
          "os.environ",
          {
              "WANDB_LAUNCH_QUEUE_NAME": queue,
              "WANDB_LAUNCH_QUEUE_ENTITY": user,
              "WANDB_LAUNCH_TRACE_ID": "test123",
          },
      ):
          with relay_server() as relay:
              run = wandb_init()
              run.log({"test": 1})
              run.finish()
  
          config = relay.context.config[run.id]
  
          assert (
              config["_wandb"]["value"]["launch_trace_id"] == "test123"
          )
          assert (
              config["_wandb"]["value"]["launch_queue_entity"] == user
          )
          assert config["_wandb"]["value"]["launch_queue_name"] == queue
  
file_path: wandb/tests/pytest_tests/system_tests/test_launch/test_launch.py
imports: from unittest import mock
  from unittest.mock import MagicMock
  import pytest
  import wandb
  from wandb.errors import CommError
  from wandb.sdk.internal.internal_api import Api
  from wandb.sdk.launch._launch import _launch
  from wandb.sdk.launch.builder.build import EntryPoint
  from wandb.sdk.launch.errors import LaunchError
label_desc: Use image node_id 4 for calling a global function with example usage: test_launch_wandb_init_launch_envs(relay_server, runner, user, wandb_init, test_settings) without return types