code: def assert_same_scoring_history(
      model, metric_name1, metric_name2, msg=None
  ):
      sh = model.scoring_history()
      sh1 = sh[metric_name1]
      sh2 = sh[metric_name2]
      assert (sh1 - sh2).abs().max() < 1e-4, msg
  
imports: import sys
  from tests import pyunit_utils
  from tests.pyunit_utils import dataset_prostate
  from h2o.estimators.xgboost import H2OXGBoostEstimator
label_desc: Use image node_id 1 for calling a global function with example usage: assert_same_scoring_history(model, metric_name1, metric_name2, msg) without return types