code: def test_lobpcg(matrices):
      A_dense, A_sparse, x = matrices
      X = x[:, None]
  
      w_dense, v_dense = splin.lobpcg(A_dense, X)
      w, v = splin.lobpcg(A_sparse, X)
  
      assert_allclose(w, w_dense)
      assert_allclose(v, v_dense)
  
imports: import pytest
  import numpy
  import scipy.sparse
  import scipy.sparse.linalg
  from numpy.testing import assert_allclose, assert_equal
label_desc: Use image node_id 11 for calling a global function with example usage: test_lobpcg(matrices) without return types