code: def make_aids():
      def _make_aids(kind):
          if kind == "children":
              f = AIDS_CHILDREN_FILE
          elif kind == "adults":
              f = AIDS_ADULTS_FILE
          else:
              raise ValueError(f"unknown kind {kind!r}")
          data = pd.read_csv(f, comment="#").query("(8 - DIAG) > INF")
  
          event = np.repeat(True, data.shape[0])
          time_enter = data["INF"]
          time_exit = 8 - data["DIAG"]
          return event, time_enter, time_exit
  
      return _make_aids
  
imports: from os.path import dirname, join
  import numpy
  from numpy.testing import assert_array_almost_equal, assert_array_equal
  import pandas
  import pytest
  from sksurv.nonparametric import CensoringDistributionEstimator, SurvivalFunctionEstimator, kaplan_meier_estimator, nelson_aalen_estimator
  from sksurv.testing import FixtureParameterFactory
  from sksurv.util import Surv
label_desc: Use image node_id 4 for calling a global function with example usage: make_aids() and returns: _make_aids, event,  time_enter,  time_exit