code: def test_parse_args() -> None:
      positive_test_cases = {
          "--trial my_module:MyTrial": [
              "python3",
              "-m",
              "determined.exec.harness",
              "my_module:MyTrial",
          ],
          "script arg": ["script", "arg"],
          # The script is allowed to have conflicting args.
          "script --trial": ["script", "--trial"],
          # Scripts which require -- still work.
          "script -- arg": ["script", "--", "arg"],
      }
  
      negative_test_cases = {
          "--trial my_module:MyTrial script": "extra arguments",
          "": "empty script",
          "--asdf 1 script ": "unrecognized arguments",
      }
  
      test_util.parse_args_check(
          positive_test_cases,
          negative_test_cases,
          launch.deepspeed.parse_args,
      )
  
file_path: determined/harness/tests/launch/test_deepspeed.py
imports: import os
  import time
  from typing import Any, List
  from unittest import mock
  import pytest
  from deepspeed.launcher.runner import DEEPSPEED_ENVIRONMENT_NAME
  import determined.launch.deepspeed
  from determined import constants, launch
  from tests.launch import test_util
label_desc: Use image node_id 1 for calling a global function with example usage: test_parse_args() without return types