code: def test_eigs(X):
      e, v = spla.eigs(X, k=1)
      npt.assert_allclose(X @ v, e[0] * v)
  
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 29 for calling a global function with example usage: test_eigs(X) without return types