code: def test_fit(make_whas500):
      whas500 = make_whas500()
      model = IPCRidge()
      model.fit(whas500.x, whas500.y)
  
      assert model.intercept_ == pytest.approx(5.867520370855396, 1e-7)
      expected = np.array(
          [
              0.168481,
              -0.24962,
              2.185086,
              0.53682,
              -0.514611,
              0.09124,
              0.613114,
              0.480357,
              -0.055972,
              0.238472,
              -0.127209,
              -0.144063,
              -1.625081,
              -0.217591,
          ]
      )
      assert_array_almost_equal(model.coef_, expected)
  
file_path: scikit-survival/tests/test_aft.py
imports: import numpy
  from numpy.testing import assert_array_almost_equal
  import pytest
  from sklearn.pipeline import make_pipeline
  from sksurv.base import SurvivalAnalysisMixin
  from sksurv.linear_model import IPCRidge
  from sksurv.testing import assert_cindex_almost_equal
label_desc: Use image node_id 1 for calling the TestIPCRidge obj's underlying member method code with example usage: obj.test_fit(make_whas500) without return types