code: def _run_cmd_check_msg(cmd: List[str], assert_str: str) -> None:
      """Helper for asserting a statement is in logs."""
      out = subprocess.check_output(cmd, stderr=subprocess.STDOUT)
      assert assert_str 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 1 for calling a global function with example usage: _run_cmd_check_msg(cmd, assert_str) without return types