code: def test_parse_args() -> None:
      positive_test_cases = {
          "--trial my_module:MyTrial": (
              [],
              [
                  "python3",
                  "-m",
                  "determined.exec.harness",
                  "my_module:MyTrial",
              ],
              False,
          ),
          "script arg": ([], ["script", "arg"], False),
          "-- script arg": ([], ["script", "arg"], False),
          "h1 h2 -- script arg": (
              ["h1", "h2"],
              ["script", "arg"],
              False,
          ),
          # The script is allowed to have conflicting args.
          "--autohorovod script": ([], ["script"], True),
          "script --autohorovod": (
              [],
              ["script", "--autohorovod"],
              False,
          ),
          # Scripts which require -- still work if the initial -- is present.
          "-- script -- arg": ([], ["script", "--", "arg"], False),
          "-- --autohorovod script -- arg": (
              [],
              ["script", "--", "arg"],
              True,
          ),
      }
      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.horovod.parse_args,
      )
  
file_path: determined/harness/tests/launch/test_horovod.py
imports: import os
  import time
  from unittest import mock
  import pytest
  import determined.launch.horovod
  from determined import constants, horovod, launch
  from determined.common.api import certs
  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