code: def test_solvers(B, solver):
      if solver == "minres":
          kwargs = {}
      else:
          kwargs = {"atol": 1e-5}
  
      x, info = getattr(spla, solver)(B, np.array([1, 2]), **kwargs)
      assert (
          info >= 0
      )  # no errors, even if perhaps did not converge fully
      npt.assert_allclose(x, [1, 1], atol=1e-1)
  
imports: import pytest
  import numpy
  import numpy.testing
  import scipy.sparse
  import scipy.sparse.linalg
  from scipy._lib._util import VisibleDeprecationWarning
label_desc: Use image node_id 27 for calling a global function with example usage: test_solvers(B, solver) without return types