code: def assert_same_scoring_history(
      model_actual, model_expected, metric_name1, metric_name2, msg=None
  ):
      scoring_history_actual = model_actual.scoring_history()
      scoring_history_expected = model_expected.scoring_history()
      sh1 = scoring_history_actual[metric_name1]
      sh2 = scoring_history_expected[metric_name2]
      assert (sh1 - sh2).abs().max() < 1e-4, msg
  
file_path: h2o-3/h2o-py/tests/testdir_algos/xgboost/pyunit_xgboost_eval_metric_stopping.py
imports: import sys
  from h2o import upload_custom_metric
  from tests import pyunit_utils
  from tests.pyunit_utils import dataset_prostate
  from h2o.estimators.xgboost import H2OXGBoostEstimator
  from tests.pyunit_utils import CustomMaeFunc
label_desc: Use image node_id 2 for calling a global function with example usage: assert_same_scoring_history(model_actual, model_expected, metric_name1, metric_name2, msg) without return types