code: def test_tfidf_transformer_sparse():
      X = cupyx.scipy.sparse.rand(
          10, 2000, dtype=np.float64, random_state=123
      )
      X_csc = cupyx.scipy.sparse.csc_matrix(X)
      X_csr = cupyx.scipy.sparse.csr_matrix(X)
  
      X_trans_csc = TfidfTransformer().fit_transform(X_csc).todense()
      X_trans_csr = TfidfTransformer().fit_transform(X_csr).todense()
  
      cp.testing.assert_array_almost_equal(X_trans_csc, X_trans_csr)
  
imports: from sklearn.feature_extraction.text import TfidfTransformer
  from cuml.feature_extraction.text import TfidfTransformer
  from cuml.internals.safe_imports import gpu_only_import
  import pytest
  from cuml.internals.safe_imports import cpu_only_import
label_desc: Use image node_id 3 for calling a global function with example usage: test_tfidf_transformer_sparse() without return types