code: def test_launch_add_delete_queued_run(
      relay_server, runner, user, monkeypatch, wandb_init, test_settings
  ):
      queue = "default"
      proj = "test2"
      uri = "https://github.com/wandb/examples.git"
      entry_point = [
          "python",
          "/examples/examples/launch/launch-quickstart/train.py",
      ]
      settings = test_settings({"project": LAUNCH_DEFAULT_PROJECT})
  
      api = InternalApi()
  
      with relay_server():
          run = wandb_init(settings=settings)
          api.create_run_queue(
              entity=user,
              project=LAUNCH_DEFAULT_PROJECT,
              queue_name=queue,
              access="PROJECT",
          )
  
          queued_run = launch_add(
              uri=uri,
              entity=user,
              project=proj,
              queue_name=queue,
              entry_point=entry_point,
              config={"resource": "local-process"},
              project_queue=LAUNCH_DEFAULT_PROJECT,
          )
  
          assert queued_run.state == "pending"
  
          queued_run.delete()
  
          run.finish()
  
imports: import json
  import os
  from unittest import mock
  import pytest
  import wandb
  from wandb.apis.public import Api
  from wandb.sdk.internal.internal_api import Api
  from wandb.sdk.internal.internal_api import UnsupportedError
  from wandb.sdk.launch._launch_add import launch_add
  from wandb.sdk.launch.utils import LAUNCH_DEFAULT_PROJECT, LaunchError
label_desc: Use image node_id 2 for calling a global function with example usage: test_launch_add_delete_queued_run(relay_server, runner, user, monkeypatch, wandb_init, test_settings) without return types