code: def test_inverse_transform(setup):
      # We need a lot of components for the reconstruction to be "almost
      # equal" in all positions. XXX Test means or sums instead?
      tsvd = TruncatedSVD(
          n_components=52, random_state=42, algorithm="randomized"
      )
      Xt = tsvd.fit_transform(X)
      Xinv = tsvd.inverse_transform(Xt)
      assert_array_almost_equal(Xinv.fetch(), Xdense, decimal=1)
  
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 4 for calling a global function with example usage: test_inverse_transform(setup) without return types