code: def test_verbose():
      # Smoke test that checks the printing does something and does not crash
      x = np.linspace(0, 1, 5)
      y = np.zeros((2, x.shape[0]))
      for verbose in [0, 1, 2]:
          old_stdout = sys.stdout
          sys.stdout = StringIO()
          try:
              sol = solve_bvp(exp_fun, exp_bc, x, y, verbose=verbose)
              text = sys.stdout.getvalue()
          finally:
              sys.stdout = old_stdout
  
          assert_(sol.success)
          if verbose == 0:
              assert_(not text, text)
          if verbose >= 1:
              assert_("Solved in" in text, text)
          if verbose >= 2:
              assert_("Max residual" in text, text)
  
imports: import sys
  import numpy
  from numpy.testing import assert_, assert_array_equal, assert_allclose, assert_equal
  from pytest import raises
  from scipy.sparse import coo_matrix
  from scipy.special import erf
  from scipy.integrate._bvp import modify_mesh, estimate_fun_jac, estimate_bc_jac, compute_jac_indices, construct_global_jac, solve_bvp
label_desc: Use image node_id 48 for calling a global function with example usage: test_verbose() without return types