code: def _checkargs(time, status, entry, freq_weights, exog):
      if len(time) != len(status):
          raise ValueError("time and status must have the same length")
  
      if entry is not None and (len(entry) != len(time)):
          msg = "entry times and event times must have the same length"
          raise ValueError(msg)
  
      if entry is not None and np.any(entry >= time):
          msg = "Entry times must not occur on or after event times"
          raise ValueError(msg)
  
      if freq_weights is not None and (len(freq_weights) != len(time)):
          raise ValueError(
              "weights, time and status must have the same length"
          )
  
      if exog is not None and (exog.shape[0] != len(time)):
          raise ValueError("the rows of exog should align with time")
  
file_path: statsmodels/statsmodels/duration/survfunc.py
imports: import numpy
  import pandas
  from scipy.stats.distributions import chi2, norm
  from statsmodels.graphics import utils
label_desc: Use image node_id 3 for calling a global function with example usage: _checkargs(time, status, entry, freq_weights, exog) without return types