code: def test_kernel_cumincidence1():
      # Check that when the bandwidth is very large, the kernel
      # procedure agrees with standard cumulative incidence
      # calculations. (Note: the results do not agree perfectly when
      # there are tied times).
  
      n = 100
      np.random.seed(3434)
      x = np.random.normal(size=(n, 3))
      time = np.random.uniform(0, 10, size=n)
      status = np.random.randint(0, 3, size=n)
  
      result1 = CumIncidenceRight(time, status)
  
      for dimred in False, True:
          result2 = CumIncidenceRight(
              time, status, exog=x, bw_factor=10000, dimred=dimred
          )
  
          assert_allclose(result1.times, result2.times)
          for k in 0, 1:
              assert_allclose(
                  result1.cinc[k], result2.cinc[k], rtol=1e-5
              )
  
imports: import os
  import numpy
  from statsmodels.duration.survfunc import SurvfuncRight, survdiff, plot_survfunc, CumIncidenceRight
  from numpy.testing import assert_allclose
  import pandas
  import pytest
label_desc: Use image node_id 22 for calling a global function with example usage: test_kernel_cumincidence1() without return types