code: def _check_convergence(criterion, iteration, tol, maxiter):
      cond = np.abs(criterion[iteration] - criterion[iteration - 1])
      return not (np.any(cond > tol) and iteration < maxiter)
  
imports: import numpy
  import scipy.stats
  import statsmodels.base.model
  import statsmodels.base.wrapper
  import statsmodels.regression._tools
  import statsmodels.regression.linear_model
  import statsmodels.robust.norms
  import statsmodels.robust.scale
  from statsmodels.tools.decorators import cache_readonly
  from statsmodels.tools.sm_exceptions import ConvergenceWarning
label_desc: Use image node_id 1 for calling a global function with example usage: _check_convergence(criterion, iteration, tol, maxiter) and returns: unknown