code: def test_cum_baseline_hazard(rossi):
      cph = CoxPHSurvivalAnalysis()
      cph.fit(rossi.x.values, rossi.y)
  
      expected_x = np.array(
          [
              1,
              2,
              3,
              4,
              5,
              6,
              7,
              8,
              9,
              10,
              11,
              12,
              13,
              14,
              15,
              16,
              17,
              18,
              19,
              20,
              21,
              22,
              23,
              24,
              25,
              26,
              27,
              28,
              30,
              31,
              32,
              33,
              34,
              35,
              36,
              37,
              38,
              39,
              40,
              42,
              43,
              44,
              45,
              46,
              47,
              48,
              49,
              50,
              52,
          ]
      )
      assert_array_almost_equal(cph.cum_baseline_hazard_.x, expected_x)
  
      expected_y = np.array(
          [
              0.00678640369024364,
              0.0135929334270716,
              0.0204043079886091,
              0.0272294776707967,
              0.0340761479284598,
              0.0409513630548852,
              0.0478644598407522,
              0.0824874121212009,
              0.096533196335404,
              0.103576022547612,
              0.117797217724239,
              0.13229957774496,
              0.139567689198792,
              0.161464121391667,
              0.176251599922103,
              0.191124391501441,
              0.213510322480229,
              0.236290954886606,
              0.251649773106939,
              0.290325398473108,
              0.305965134135433,
              0.313818453028679,
              0.321716523315376,
              0.35335069072333,
              0.377266607384033,
              0.401708829897942,
              0.418104688092493,
              0.434591703603588,
              0.45124335888492,
              0.459626329898386,
              0.476473421812951,
              0.493441590730406,
              0.510649810315838,
              0.54536240502959,
              0.571724727186497,
              0.607219385133454,
              0.616212515733231,
              0.634272429676232,
              0.670563043622984,
              0.689028239653618,
              0.72608698374096,
              0.744888154417096,
              0.763829951751727,
              0.802133842428817,
              0.811813515937835,
              0.831261170527727,
              0.880363253205648,
              0.910240767958261,
              0.950727380604515,
          ]
      )
  
      actual_y = [cph.cum_baseline_hazard_(v) for v in expected_x]
      assert_increasing(actual_y)
      assert_array_almost_equal(actual_y, expected_y)
  
imports: import warnings
  import numpy
  from numpy.testing import assert_array_almost_equal
  import pandas
  import pytest
  from scipy.optimize import check_grad
  from sklearn.exceptions import ConvergenceWarning
  from sklearn.pipeline import make_pipeline
  from sklearn.preprocessing import StandardScaler
  from sksurv.column import standardize
  from sksurv.datasets import load_breast_cancer
  from sksurv.linear_model.coxph import CoxPHOptimizer, CoxPHSurvivalAnalysis
  from sksurv.preprocessing import OneHotEncoder
label_desc: Use image node_id 17 for calling the TestCoxPH obj's underlying member method code with example usage: obj.test_cum_baseline_hazard(rossi) without return types