code: def test_launch_sweep_scheduler_resources(
      user, wandb_init, test_settings, scheduler_args, msg
  ):
      # make proj and job
      settings = test_settings({"project": "model-registry"})
      run = wandb_init(settings=settings)
      job_artifact = run._log_job_artifact_with_image(
          "test:latest", args=[]
      )
      job_name = f"{user}/model-registry/{job_artifact.wait().name}"
      run.finish()
  
      internal_api = InternalApi()
      internal_api.create_run_queue(
          entity=user,
          project="model-registry",
          queue_name="q",
          access="PROJECT",
      )
  
      if scheduler_args.get(
          "job"
      ):  # replace placeholder name with actual
          scheduler_args["job"] = job_name
  
      config = {
          "method": "grid",
          "parameters": {"parameter1": {"values": [1, 2, 3]}},
          "launch": {"queue": "q"},
          "job": job_name,
          "scheduler": scheduler_args,
      }
      json.dump(config, open("s.yaml", "w"))
  
      cmd = ["wandb", "launch-sweep", "-e", user, "-p", "p", "s.yaml"]
      _run_cmd_check_msg(cmd, msg)
  
file_path: wandb/tests/pytest_tests/system_tests/test_launch/test_launch_sweep_cli.py
imports: import json
  import subprocess
  from typing import List
  import pytest
  import wandb
  from wandb.apis.internal import InternalApi
  from wandb.apis.public import Api
  from wandb.sdk.launch.utils import LAUNCH_DEFAULT_PROJECT
label_desc: Use image node_id 3 for calling a global function with example usage: test_launch_sweep_scheduler_resources(user, wandb_init, test_settings, scheduler_args, msg) without return types