code: def get_thresholds(iso_reg):
      if is_old_sklearn(iso_reg):
          return iso_reg._necessary_y_, iso_reg._necessary_X_
      else:
          return iso_reg.y_thresholds_, iso_reg.X_thresholds_
  
file_path: h2o-3/h2o-py/tests/testdir_algos/isotonic/pyunit_isotonic.py
imports: import sys
  from tests import pyunit_utils
  import numpy
  import pandas
  from pandas.testing import assert_frame_equal
  from sklearn.datasets import make_regression
  from sklearn.isotonic import IsotonicRegression
  import h2o
  from h2o import H2OFrame
  from h2o.estimators.isotonicregression import H2OIsotonicRegressionEstimator
label_desc: Use image node_id 3 for calling a global function with example usage: get_thresholds(iso_reg) and returns: iso_reg,  iso_reg, iso_reg,  iso_reg