code: def assert_cindex_almost_equal(
      event_indicator, event_time, estimate, expected
  ):
      result = concordance_index_censored(
          event_indicator, event_time, estimate
      )
      assert_array_equal(result[1:], expected[1:])
      concordant, discordant, tied_risk = result[1:4]
      cc = (concordant + 0.5 * tied_risk) / (
          concordant + discordant + tied_risk
      )
      assert_almost_equal(result[0], cc)
      assert_almost_equal(result[0], expected[0])
  
file_path: scikit-survival/sksurv/testing.py
imports: from importlib import import_module
  import inspect
  from pathlib import Path
  import pkgutil
  import numpy
  from numpy.testing import assert_almost_equal, assert_array_equal
  import pytest
  import sksurv
  from sksurv.base import SurvivalAnalysisMixin
  from sksurv.metrics import concordance_index_censored
label_desc: Use image node_id 1 for calling a global function with example usage: assert_cindex_almost_equal(event_indicator, event_time, estimate, expected) without return types