class_docstr: Check the Broyden methods for a few test problems.
  
  broyden1, broyden2, and newton_krylov must succeed for
  all functions. Some of the others don't -- tests in KNOWN_BAD are skipped.
class_docstr_tok: ["Check","the","Broyden","methods","for","a","few","test","problems",".","broyden1",",","broyden2",",","and","newton_krylov","must","succeed","for","all","functions",".","Some","of","the","others","do","n't","--","tests","in","KNOWN_BAD","are","skipped","."]
code: def test_tol_norm_called(self):
      # Check that supplying tol_norm keyword to nonlin_solve works
      self._tol_norm_used = False
  
      def local_norm_func(x):
          self._tol_norm_used = True
          return np.absolute(x).max()
  
      nonlin.newton_krylov(
          F,
          F.xin,
          f_tol=1e-2,
          maxiter=200,
          verbose=0,
          tol_norm=local_norm_func,
      )
      assert_(self._tol_norm_used)
  
imports: from __future__ import division, print_function, absolute_import
  from numpy.testing import assert_
  import pytest
  from scipy._lib.six import xrange
  from scipy.optimize import nonlin, root
  from numpy import diag, dot
  from numpy.linalg import inv
  import numpy
  from .test_minpack import pressure_network
label_desc: Use image node_id 5 for calling the TestNonlin obj's underlying member method code with example usage: obj.test_tol_norm_called() and returns: np