code: def test_survfunc1():
      # Test where all times have at least 1 event.
  
      sr = SurvfuncRight(ti1, st1)
      assert_allclose(sr.surv_prob, surv_prob1, atol=1e-5, rtol=1e-5)
      assert_allclose(
          sr.surv_prob_se, surv_prob_se1, atol=1e-5, rtol=1e-5
      )
      assert_allclose(sr.surv_times, times1)
      assert_allclose(sr.n_risk, n_risk1)
      assert_allclose(sr.n_events, n_events1)
  
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 2 for calling a global function with example usage: test_survfunc1() without return types