code: def run_test_case(testcase: str, message: str) -> None:
      experiment_id = exp.create_experiment(
          conf.fixtures_path(testcase),
          conf.fixtures_path("hpc"),
      )
  
      try:
          exp.wait_for_experiment_state(
              experiment_id,
              experimentv1State.COMPLETED,
              max_wait_secs=600,
          )
  
          trials = exp.experiment_trials(experiment_id)
  
          assert exp.check_if_string_present_in_trial_logs(
              trials[0].trial.id,
              message,
          )
      except AssertionError:
          # On failure print the log for triage
          logs = exp.trial_logs(trials[0].trial.id, follow=True)
          print(
              "******** Start of logs for trial {} ********".format(
                  trials[0].trial.id
              ),
              file=sys.stderr,
          )
          print("".join(logs), file=sys.stderr)
          print(
              "******** End of logs for trial {} ********".format(
                  trials[0].trial.id
              ),
              file=sys.stderr,
          )
          print(
              f"Trial {trials[0].trial.id} log did not contain any of the "
              + f"expected message: {message}",
              file=sys.stderr,
          )
          raise
  
file_path: determined/e2e_tests/tests/experiment/test_hpc_launch.py
imports: import sys
  from typing import Callable
  import pytest
  from determined.common.api.bindings import experimentv1State
  from tests import config
  from tests import experiment
label_desc: Use image node_id 1 for calling a global function with example usage: run_test_case(testcase, message) without return types