code: def expect_error(action, model, format):
      try:
          action(path=RESULT_DIR)
          assert False, (
              "There should be an error when trying to export %s to %s"
              % (model, format)
          )
      except H2OValueError as e:
          print("Expected H2OValueError message: '%s'" % e)
  
imports: import sys
  import random
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.deeplearning import H2ODeepLearningEstimator
  from h2o.estimators.gbm import H2OGradientBoostingEstimator
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
  from h2o.estimators.glrm import H2OGeneralizedLowRankEstimator
  from h2o.estimators.kmeans import H2OKMeansEstimator
  from h2o.estimators.naive_bayes import H2ONaiveBayesEstimator
  from h2o.estimators.pca import H2OPrincipalComponentAnalysisEstimator
  from h2o.estimators.random_forest import H2ORandomForestEstimator
  from h2o.estimators.stackedensemble import H2OStackedEnsembleEstimator
  from h2o.estimators.word2vec import H2OWord2vecEstimator
  from h2o.exceptions import H2OValueError
label_desc: Use image node_id 1 for calling a global function with example usage: expect_error(action, model, format) without return types