code: def _fixed_point_helper(func, x0, args, xtol, maxiter, use_accel):
      p0 = x0
      for i in range(maxiter):
          p1 = func(p0, *args)
          if use_accel:
              p2 = func(p1, *args)
              d = p2 - 2.0 * p1 + p0
              p = _lazywhere(d != 0, (p0, p1, d), f=_del2, fillvalue=p2)
          else:
              p = p1
          relerr = _lazywhere(p0 != 0, (p, p0), f=_relerr, fillvalue=p)
          if np.all(np.abs(relerr) < xtol):
              return p
          p0 = p
      msg = "Failed to converge after %d iterations, value is %s" % (
          maxiter,
          p,
      )
      raise RuntimeError(msg)
  
imports: import warnings
  from .None import _minpack
  import numpy
  from numpy import atleast_1d, triu, shape, transpose, zeros, prod, greater, asarray, inf, finfo, inexact, issubdtype, dtype
  from scipy import linalg
  from scipy.linalg import svd, cholesky, solve_triangular, LinAlgError
  from scipy._lib._util import _asarray_validated, _lazywhere, _contains_nan
  from scipy._lib._util import getfullargspec_no_self
  from ._optimize import OptimizeResult, _check_unknown_options, OptimizeWarning
  from ._lsq import least_squares
  from ._lsq.least_squares import prepare_bounds
  from scipy.optimize._minimize import Bounds
  from numpy import dot, eye, take
  from numpy.linalg import inv
label_desc: Use image node_id 13 for calling a global function with example usage: _fixed_point_helper(func, x0, args, xtol, maxiter, use_accel) and returns: p