code: def _stoptest(residual, atol):
      """
      Successful termination condition for the solvers.
      """
      resid = np.linalg.norm(residual)
      if resid <= atol:
          return resid, 1
      else:
          return resid, 0
  
file_path: catboost/contrib/python/scipy/py2/scipy/sparse/linalg/isolve/iterative.py
imports: from __future__ import division, print_function, absolute_import
  import warnings
  import numpy
  from .None import _iterative
  from scipy.sparse.linalg.interface import LinearOperator
  from .utils import make_system
  from scipy._lib._util import _aligned_zeros
  from scipy._lib._threadsafety import non_reentrant
label_desc: Use image node_id 1 for calling a global function with example usage: _stoptest(residual, atol) and returns: resid,  int, resid,  int