code: def do_test_launch(
      config: Dict[str, Any], cmd: List[str], mock_popen: mock.MagicMock
  ) -> None:
      mock_proc = mock.MagicMock()
      mock_proc.wait.return_value = 99
      mock_popen.return_value = mock_proc
      assert launch.launch(det.ExperimentConfig(config)) == 99
      mock_popen.assert_called_once_with(cmd)
  
file_path: determined/harness/tests/launch/test_launch.py
imports: import runpy
  from typing import Any, Dict, List
  from unittest import mock
  import pytest
  import determined
  from determined.exec import launch
  from tests.launch import test_util
label_desc: Use image node_id 1 for calling a global function with example usage: do_test_launch(config, cmd, mock_popen) without return types