code: def test_agent_queues_config(
      runner, test_settings, live_mock_server, monkeypatch
  ):
      monkeypatch.setattr(
          wandb.sdk.launch._launch,
          "LAUNCH_CONFIG_FILE",
          os.path.join("./config/wandb/launch-config.yaml"),
      )
      launch_config = {
          "builder": {"type": "docker"},
          "queues": ["q1", "q2"],
      }
  
      with runner.isolated_filesystem():
          os.makedirs(os.path.expanduser("./config/wandb"))
          with open(
              os.path.expanduser("./config/wandb/launch-config.yaml"),
              "w",
          ) as f:
              json.dump(launch_config, f)
          result = runner.invoke(
              cli.launch_agent,
              [
                  "--entity",
                  "mock_server_entity",
              ],
          )
          assert result.exit_code != 0
          assert (
              "Not all of requested queues (q1, q2) found"
              in 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 6 for calling a global function with example usage: test_agent_queues_config(runner, test_settings, live_mock_server, monkeypatch) without return types