code: def test_launch_trial() -> None:
      entrypoint = "model_def:TrialClass"
      config = {"entrypoint": entrypoint}
      cmd = [
          "python3",
          "-m",
          "determined.launch.horovod",
          "--autohorovod",
          "--trial",
          entrypoint,
      ]
      do_test_launch(config, 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 2 for calling a global function with example usage: test_launch_trial() without return types