code: def test_disp(self, capsys):
      H = -np.eye(5)
      g = np.array([0, 0, 0, 0, 1e-6])
      trust_radius = 1.1
  
      subprob = KrylovQP_disp(
          x=0,
          fun=lambda x: 0,
          jac=lambda x: g,
          hess=lambda x: None,
          hessp=lambda x, y: H.dot(y),
      )
      p, hits_boundary = subprob.solve(trust_radius)
      out, err = capsys.readouterr()
      assert_(
          out.startswith(" TR Solving trust region problem"), repr(out)
      )
  
file_path: catboost/contrib/python/scipy/py3/scipy/optimize/tests/test_trustregion_krylov.py
imports: import numpy
  from scipy.optimize._trlib import get_trlib_quadratic_subproblem
  from numpy.testing import assert_, assert_almost_equal, assert_equal, assert_array_almost_equal
label_desc: Use image node_id 5 for calling the TestKrylovQuadraticSubproblem obj's underlying member method code with example usage: obj.test_disp(capsys) without return types