code: def test_sweep_scheduler(runner, mock_server, test_settings):
      with runner.isolated_filesystem():
          with open("config.json", "w") as f:
              json.dump(
                  {
                      "queue": "default",
                      "resource": "local-process",
                      "job": "mock-launch-job",
                      "scheduler": {
                          "resource": "local-process",
                      },
                  },
                  f,
              )
          sweep_config = {
              "name": "My Sweep",
              "method": "grid",
              "parameters": {"parameter1": {"values": [1, 2, 3]}},
          }
          sweep_id = wandb.sweep(sweep_config)
          assert sweep_id == "test"
          assert (
              runner.invoke(
                  cli.launch_sweep,
                  ["config.json", "--resume_id", sweep_id],
              ).exit_code
              == 0
          )
  
imports: import json
  import pytest
  import wandb
  from wandb.cli import cli
label_desc: Use image node_id 2 for calling a global function with example usage: test_sweep_scheduler(runner, mock_server, test_settings) without return types