code: def run_failure_test_multiple(
      config_file: str, model_def_file: str, errors: List[str]
  ) -> int:
      # Creates an experiment meant to fail and checks array of error messages
      # If one of the errors are present, then the assertion passes
      experiment_id = exp.create_experiment(
          config_file,
          model_def_file,
      )
      exp.wait_for_experiment_state(
          experiment_id,
          bindings.experimentv1State.ERROR,
          max_wait_secs=600,
      )
      trials = exp.experiment_trials(experiment_id)
      for t in trials:
          trial = t.trial
          if trial.state != bindings.trialv1State.ERROR:
              continue
  
          logs = exp.trial_logs(trial.id)
          totalAssertion = False
          for e in errors:
              totalAssertion = totalAssertion or any(
                  e in line for line in logs
              )
          if not totalAssertion:
              print(
                  "******** Start of logs for trial {} ********".format(
                      trial.id
                  ),
                  file=sys.stderr,
              )
              print("".join(logs), file=sys.stderr)
              print(
                  "******** End of logs for trial {} ********".format(
                      trial.id
                  ),
                  file=sys.stderr,
              )
              newline = "\n"
              print(
                  f"Trial {trial.id} log did not contain any of the "
                  + f"expected messages:{newline.join(errors)}",
                  file=sys.stderr,
              )
          assert totalAssertion
      return experiment_id
  
imports: import logging
  import sys
  from typing import List
  import pytest
  import torch
  from determined.common.api import bindings
  from tests import api_utils, command
  from tests import config
  from tests import experiment
label_desc: Use image node_id 1 for calling a global function with example usage: run_failure_test_multiple(config_file, model_def_file, errors) and returns: experiment_id