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: import pytest
  from math import sqrt, exp, sin, cos
  from functools import lru_cache
  from numpy.testing import assert_warns, assert_, assert_allclose, assert_equal, assert_array_equal, suppress_warnings
  import numpy
  from numpy import finfo, power, nan, isclose
  from scipy.optimize import zeros, newton, root_scalar
  from scipy._lib._util import getfullargspec_no_self
  from scipy.optimize._tstutils import get_tests, functions, fstrings
label_desc: Use image node_id 9 for calling a global function with example usage: test_gh_5555() and returns: unknown