code: def get_ks(model, data):
      """
      This is needed for getting the KS metric for the data.
  
      Using model.kolmogorov_smirnov() would work for most models for training data but not for
      DRF which reports OOB stats...
      """
      perf = model.model_performance(data)
      return max(perf.gains_lift()["kolmogorov_smirnov"])
  
file_path: h2o-3/h2o-py/tests/testdir_misc/pyunit_gainslift_bins.py
imports: import sys
  import h2o
  import pandas
  from tests import pyunit_utils
  from h2o.estimators import *
  from h2o.utils.threading import local_context
label_desc: Use image node_id 3 for calling a global function with example usage: get_ks(model, data) and returns: max