code: def assert_va_test_metrics_eq(
      glmtrmetrics,
      glmtemetrics,
      trmetrics,
      vmetrics,
      tmetrics,
      metrictitle,
  ):
      print(
          "GLM training {2}: {0}, GAM training {2}: {1}".format(
              glmtrmetrics, trmetrics, metrictitle
          )
      )
      print(
          "GLM test {2}: {0}, GAM test {2}: {1}".format(
              glmtemetrics, tmetrics, metrictitle
          )
      )
      assert (
          abs(vmetrics - tmetrics) < 1e-6
      ), "Gam validation {0}: {1}, Gam test {0}: {2}".format(
          metrictitle, vmetrics, tmetrics
      )
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from h2o.estimators.gam import H2OGeneralizedAdditiveEstimator
  from h2o.estimators.glm import H2OGeneralizedLinearEstimator
label_desc: Use image node_id 2 for calling a global function with example usage: assert_va_test_metrics_eq(glmtrmetrics, glmtemetrics, trmetrics, vmetrics, tmetrics, metrictitle) without return types