code: def test_launch_sweep_launch_uri(user, image_uri, launch_config):
      queue = "test"
      api = InternalApi()
      public_api = Api()
      public_api.create_project(LAUNCH_DEFAULT_PROJECT, user)
  
      # make launch project queue
      res = api.create_run_queue(
          entity=user,
          project=LAUNCH_DEFAULT_PROJECT,
          queue_name=queue,
          access="USER",
      )
  
      if res.get("success") is not True:
          raise Exception("create queue" + str(res))
  
      sweep_config = {
          "method": "grid",
          "image_uri": image_uri,
          "parameters": {"parameter1": {"values": [1, 2, 3]}},
      }
      sweep_config.update(**launch_config)
  
      with open("sweep-config.yaml", "w") as f:
          json.dump(sweep_config, f)
  
      out = subprocess.check_output(
          [
              "wandb",
              "launch-sweep",
              "sweep-config.yaml",
              "-e",
              user,
              "-p",
              LAUNCH_DEFAULT_PROJECT,
              "-q",
              queue,
          ],
          stderr=subprocess.STDOUT,
      )
  
      assert "Scheduler added to launch queue (test)" in out.decode(
          "utf-8"
      )
  
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 4 for calling a global function with example usage: test_launch_sweep_launch_uri(user, image_uri, launch_config) without return types