code: def with_strata_and_weights(shelter):
      shelter["weight"] = np.random.normal(0.5, 0.2, shelter.index.size)
      shelter["weight"] = shelter["weight"].abs()
  
      check_cox(
          shelter,
          x=[
              "intake_condition1",
              "intake_condition2",
              "intake_type",
              "animal_breed",
              "chip_status",
              "surv_hours",
          ],
          stratify_by=["intake_type", "intake_condition1"],
          expected_formula="Surv(surv_hours, event) ~ "
          "intake_condition2 + animal_breed + chip_status + "
          "strata(intake_type) + strata(intake_condition1)",
          weight="weight",
      )
  
file_path: h2o-3/h2o-py/tests/testdir_algos/coxph/pyunit_coxph_concordance_survival_shelter.py
imports: import sys
  import h2o
  from lifelines import CoxPHFitter
  from pandas.testing import assert_frame_equal
  from pandas import read_csv
  import numpy
  from tests import pyunit_utils
  from h2o.estimators.coxph import H2OCoxProportionalHazardsEstimator
label_desc: Use image node_id 5 for calling a global function with example usage: with_strata_and_weights(shelter) without return types