code: def test_launch_add_with_priority_to_no_prio_queue_raises(
      runner, relay_server, user, monkeypatch
  ):
      def patched_push_to_run_queue_introspection(*args, **kwargs):
          args[0].server_supports_template_variables = True
          args[0].server_push_to_run_queue_supports_priority = True
          return (True, True)
  
      monkeypatch.setattr(
          wandb.sdk.internal.internal_api.Api,
          "push_to_run_queue_introspection",
          patched_push_to_run_queue_introspection,
      )
  
      # Backend returns 4xx if you attempt to push an item with
      # non-default priority to a queue that doesn't support priority
      def patched_push_to_run_queue_by_name(*args, **kwargs):
          return None
  
      monkeypatch.setattr(
          wandb.sdk.internal.internal_api.Api,
          "push_to_run_queue_by_name",
          patched_push_to_run_queue_by_name,
      )
  
      queue_name = "no_prio_queue"
      proj = "test1"
      queue_config = {}
      base_config = {}
  
      with relay_server(), runner.isolated_filesystem():
          api = PublicApi(api_key=user)
          api.create_run_queue(
              entity=user,
              name=queue_name,
              type="local-container",
              config=queue_config,
          )
          with pytest.raises(LaunchError):
              _ = launch_add(
                  project=proj,
                  entity=user,
                  queue_name=queue_name,
                  docker_image="abc:latest",
                  config=base_config,
                  priority=0,
              )
  
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 12 for calling a global function with example usage: test_launch_add_with_priority_to_no_prio_queue_raises(runner, relay_server, user, monkeypatch) and returns: True,  True, None