code: def test_line_search_armijo(self):
      c = 0
      for name, f, fprime, x, p, old_f in self.line_iter():
          f0 = f(x)
          g0 = fprime(x)
          self.fcount = 0
          s, fc, fv = ls.line_search_armijo(f, x, p, g0, f0)
          c += 1
          assert_equal(self.fcount, fc)
          assert_fp_equal(fv, f(x + s * p))
          assert_line_armijo(x, p, s, f, err_msg=name)
      assert_(c >= 9)
  
imports: from __future__ import division, print_function, absolute_import
  from numpy.testing import assert_, assert_equal, assert_array_almost_equal, assert_array_almost_equal_nulp, assert_warns
  from scipy._lib._numpy_compat import suppress_warnings
  import scipy.optimize.linesearch
  from scipy.optimize.linesearch import LineSearchWarning
  import numpy
label_desc: Use image node_id 15 for calling the TestLineSearch obj's underlying member method code with example usage: obj.test_line_search_armijo() without return types