code: def _assert_test_scores_equivalent(lk, rk):
      if lk in scores and rk in scores:
          assert (
              abs(scores[lk] - abs(scores[rk])) < 1e-6
          ), "expected equivalent scores but got {lk}={lscore} and {rk}={rscore}".format(
              lk=lk, rk=rk, lscore=scores[lk], rscore=scores[rk]
          )
      elif lk not in scores:
          print("no scores for {}".format(lk))
      else:
          print("no scores for {}".format(rk))
  
file_path: h2o-3/h2o-py/tests/testdir_sklearn/pyunit_sklearn_regression_search_pipeline.py
imports: import importlib, inspect, os, sys
  import numpy
  from sklearn.datasets import make_regression
  from sklearn.decomposition import TruncatedSVD
  from sklearn.metrics import r2_score, make_scorer
  from sklearn.model_selection import train_test_split, RandomizedSearchCV
  from sklearn.pipeline import Pipeline
  import h2o
  from h2o.cross_validation import H2OKFold
  from h2o.model.regression import h2o_r2_score
  from h2o.sklearn import h2o_connection, H2OGradientBoostingEstimator, H2OGradientBoostingRegressor, H2OSVD
  from h2o.sklearn.wrapper import H2OConnectionMonitorMixin
  from tests import pyunit_utils, Namespace
label_desc: Use image node_id 5 for calling a global function with example usage: _assert_test_scores_equivalent(lk, rk) without return types