code: def test_attributes():
      for n_components in (10, 25, 41):
          tsvd = dd.TruncatedSVD(n_components).fit(dXdense)
          assert tsvd.n_components == n_components
          assert tsvd.components_.shape == (n_components, n_features)
  
file_path: dask-ml/tests/test_svd.py
imports: import dask.array
  import numpy
  import pytest
  import scipy.sparse
  from numpy.testing import assert_array_almost_equal
  from sklearn import decomposition
  from sklearn.utils import check_random_state
  from dask_ml import decomposition
  from dask_ml.utils import assert_estimator_equal, flip_vector_signs
label_desc: Use image node_id 3 for calling a global function with example usage: test_attributes() without return types