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.isnull() == sh2.isnull()).all(), msg
      assert (sh1.dropna() == sh2.dropna()).all(), msg
  
imports: import sys
  import h2o
  from tests import pyunit_utils
  from tests.pyunit_utils import CustomMaeFunc, dataset_prostate
  from h2o.estimators.gbm import H2OGradientBoostingEstimator
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