code: def test_sparse_formats(setup):
      tsvd = TruncatedSVD(n_components=11)
      Xtrans = tsvd.fit_transform(Xdense)
      assert Xtrans.shape == (n_samples, 11)
      Xtrans = tsvd.transform(Xdense)
      assert Xtrans.shape == (n_samples, 11)
  
file_path: mars/mars/learn/decomposition/tests/test_truncated_svd.py
imports: import numpy
  import pytest
  import scipy.sparse
  from sklearn.utils import check_random_state
  from sklearn.utils._testing import assert_array_almost_equal, assert_array_less
  from ....None import tensor
  from ..None import TruncatedSVD
label_desc: Use image node_id 3 for calling a global function with example usage: test_sparse_formats(setup) without return types