code: def test_tol_norm(self):
      def norm(x):
          return abs(x[0])
  
      for method in [
          "excitingmixing",
          "diagbroyden",
          "linearmixing",
          "anderson",
          "broyden1",
          "broyden2",
          "krylov",
      ]:
          root(
              np.zeros_like,
              np.zeros(2),
              method=method,
              options={"tol_norm": norm},
          )
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/tests/test__root.py
imports: from numpy.testing import assert_
  from pytest import raises
  import numpy
  from scipy.optimize import root
label_desc: Use image node_id 2 for calling the TestRoot obj's underlying member method code with example usage: obj.test_tol_norm() and returns: abs