code: def test_sweep_launch_scheduler(
      runner, test_settings, live_mock_server
  ):
      with runner.isolated_filesystem():
          with open("sweep-config.yaml", "w") as f:
              json.dump(
                  {
                      "name": "My Sweep",
                      "method": "grid",
                      "job": "test-job:v9",
                      "launch": {
                          "queue": "default",
                          "resource": "local-process",
                      },
                      "scheduler": {
                          "resource": "local-process",
                      },
                      "parameters": {
                          "parameter1": {"values": [1, 2, 3]}
                      },
                  },
                  f,
              )
          result = runner.invoke(
              cli.launch_sweep,
              [
                  "sweep-config.yaml",
                  "--entity",
                  "mock_server_entity",
              ],
          )
          assert result.exit_code == 0
  
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 12 for calling a global function with example usage: test_sweep_launch_scheduler(runner, test_settings, live_mock_server) without return types