code: def same_matrix(sparse_cls, sp_sparse_cls):
      np.random.seed(1234)
      A_dense = np.random.rand(9, 9)
      return sp_sparse_cls(A_dense), sparse_cls(A_dense)
  
imports: import pytest
  import numpy
  import scipy.sparse
  import scipy.sparse.linalg
  from numpy.testing import assert_allclose
label_desc: Use image node_id 3 for calling a global function with example usage: same_matrix(sparse_cls, sp_sparse_cls) and returns: sp_sparse_cls,  sparse_cls