code: def test_factorized(B):
      if B.__class__.__name__[:3] != "csc":
          return
  
      LU = spla.factorized(B)
      npt.assert_allclose(
          LU(np.array([1, 2])), np.linalg.solve(B.todense(), [1, 2])
      )
  
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 26 for calling a global function with example usage: test_factorized(B) without return types