code: def test_vectorizer_with_pandas_series(vectorizer):
      corpus = [
          "This Is DoC",
          "this DoC is the second DoC.",
          "And this document is the third one.",
          "and Is this the first document?",
      ]
      cuml_vec, sklearn_vec = {
          "tfidf": (TfidfVectorizer, SkTfidfVect),
          "hash_vec": (HashingVectorizer, SkHashVect),
          "count_vec": (CountVectorizer, SkCountVect),
      }[vectorizer]
      raw_documents = pd.Series(corpus)
      res = cuml_vec().fit_transform(raw_documents)
      ref = sklearn_vec().fit_transform(raw_documents)
      assert_almost_equal_hash_matrices(
          res.todense().get(), ref.toarray()
      )
  
imports: from cuml.internals.safe_imports import cpu_only_import
  from cuml.internals.safe_imports import cpu_only_import_from
  from cuml.internals.safe_imports import gpu_only_import_from
  from sklearn.feature_extraction.text import TfidfVectorizer
  from sklearn.feature_extraction.text import HashingVectorizer
  from sklearn.feature_extraction.text import CountVectorizer
  import pytest
  from cuml.feature_extraction.text import CountVectorizer
  from cuml.feature_extraction.text import TfidfVectorizer
  from cuml.feature_extraction.text import HashingVectorizer
  from cuml.internals.safe_imports import gpu_only_import
label_desc: Use image node_id 35 for calling a global function with example usage: test_vectorizer_with_pandas_series(vectorizer) without return types