code: def test_launch_sweep_launch_resume(user):
      api = InternalApi()
      public_api = Api()
      public_api.create_project(LAUNCH_DEFAULT_PROJECT, user)
  
      # make launch project queue
      api.create_run_queue(
          entity=user,
          project=LAUNCH_DEFAULT_PROJECT,
          queue_name="queue",
          access="USER",
      )
  
      # bogus sweep
      with pytest.raises(subprocess.CalledProcessError):
          subprocess.check_output(
              [
                  "wandb",
                  "launch-sweep",
                  "--resume_id",
                  "bogussweepid",
                  "-e",
                  user,
                  "-p",
                  LAUNCH_DEFAULT_PROJECT,
                  "-q",
                  "queue",
              ],
              stderr=subprocess.STDOUT,
          )
  
      sweep_config = {
          "method": "grid",
          "image_uri": "test-image:latest",
          "parameters": {"parameter1": {"values": [1, 2, 3]}},
      }
  
      # Entity, project, and sweep
      sweep_id = wandb.sweep(
          sweep_config, entity=user, project=LAUNCH_DEFAULT_PROJECT
      )
      subprocess.check_output(
          [
              "wandb",
              "launch-sweep",
              "--resume_id",
              sweep_id,
              "-e",
              user,
              "-p",
              LAUNCH_DEFAULT_PROJECT,
              "-q",
              "queue",
          ],
          stderr=subprocess.STDOUT,
      )
  
      # Resume the same sweep, NO queue, should pick up from previous
      sweep_id = wandb.sweep(
          sweep_config, entity=user, project=LAUNCH_DEFAULT_PROJECT
      )
      subprocess.check_output(
          [
              "wandb",
              "launch-sweep",
              "--resume_id",
              sweep_id,
              "-e",
              user,
              "-p",
              LAUNCH_DEFAULT_PROJECT,
          ],
          stderr=subprocess.STDOUT,
      )
  
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 5 for calling a global function with example usage: test_launch_sweep_launch_resume(user) without return types