code: def get_results(n, p, ext, ties):
      if ext is None:
          coef_name = "coef_%d_%d_%s" % (n, p, ties)
          se_name = "se_%d_%d_%s" % (n, p, ties)
          time_name = "time_%d_%d_%s" % (n, p, ties)
          hazard_name = "hazard_%d_%d_%s" % (n, p, ties)
      else:
          coef_name = "coef_%d_%d_%s_%s" % (n, p, ext, ties)
          se_name = "se_%d_%d_%s_%s" % (n, p, ext, ties)
          time_name = "time_%d_%d_%s_%s" % (n, p, ext, ties)
          hazard_name = "hazard_%d_%d_%s_%s" % (n, p, ext, ties)
      coef = getattr(survival_r_results, coef_name)
      se = getattr(survival_r_results, se_name)
      time = getattr(survival_r_results, time_name)
      hazard = getattr(survival_r_results, hazard_name)
      return coef, se, time, hazard
  
imports: import itertools
  import os
  import numpy
  from statsmodels.duration.hazard_regression import PHReg
  from numpy.testing import assert_allclose, assert_equal, assert_
  import pandas
  import pytest
  from .results import survival_r_results
  from .results import survival_enet_r_results
label_desc: Use image node_id 1 for calling a global function with example usage: get_results(n, p, ext, ties) and returns: coef,  se,  time,  hazard