code: def concordance_for_lifelines(cph):
      if "_model" in cph.__dict__.keys():
          py_concordance = cph._model._concordance_index_
      elif "_concordance_index_" in cph.__dict__.keys():
          py_concordance = cph._concordance_index_
      else:
          py_concordance = cph._concordance_score_
      return py_concordance
  
file_path: h2o-3/h2o-py/tests/testdir_algos/coxph/pyunit_coxph_concordance_survival.py
imports: import sys
  import h2o
  from lifelines import CoxPHFitter
  from lifelines.datasets import load_rossi
  from pandas.testing import assert_frame_equal
  from tests import pyunit_utils
  from h2o.estimators.coxph import H2OCoxProportionalHazardsEstimator
label_desc: Use image node_id 6 for calling a global function with example usage: concordance_for_lifelines(cph) and returns: py_concordance