code: def test_gh_5555():
      root = 0.1
  
      def f(x):
          return x - root
  
      methods = [zeros.bisect, zeros.ridder]
      xtol = rtol = TOL
      for method in methods:
          res = method(f, -1e8, 1e7, xtol=xtol, rtol=rtol)
          assert_allclose(
              root,
              res,
              atol=xtol,
              rtol=rtol,
              err_msg="method %s" % method.__name__,
          )
  
imports: from __future__ import division, print_function, absolute_import
  import pytest
  from math import sqrt, exp, sin, cos
  from numpy.testing import assert_warns, assert_, assert_allclose, assert_equal, assert_array_equal
  import numpy
  from numpy import finfo, power, nan, isclose
  from scipy.optimize import zeros, newton, root_scalar
  from scipy._lib._util import getargspec_no_self
  from scipy.optimize._tstutils import get_tests, functions, fstrings
  from scipy._lib._numpy_compat import suppress_warnings
label_desc: Use image node_id 8 for calling a global function with example usage: test_gh_5555() and returns: unknown