code: def test_tfidf_transformer(
      data, norm, use_idf, smooth_idf, sublinear_tf
  ):
      data_gpu = cp.array(data)
  
      tfidf = TfidfTransformer(
          norm=norm,
          use_idf=use_idf,
          smooth_idf=smooth_idf,
          sublinear_tf=sublinear_tf,
      )
      sk_tfidf = SkTfidfTransfo(
          norm=norm,
          use_idf=use_idf,
          smooth_idf=smooth_idf,
          sublinear_tf=sublinear_tf,
      )
  
      res = tfidf.fit_transform(data_gpu).todense()
      ref = sk_tfidf.fit_transform(data).todense()
  
      cp.testing.assert_array_almost_equal(res, ref)
  
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 1 for calling a global function with example usage: test_tfidf_transformer(data, norm, use_idf, smooth_idf, sublinear_tf) without return types