code: def test_vectorizer_params():
      assert (
          text2mat(
              data,
              vectorizer={
                  "model": "CountVectorizer",
                  "params": {"max_features": 2},
              },
              corpus=data,
          )[0].shape[1]
          == 20
      )
  
file_path: hypertools/tests/test_text2mat.py
imports: import numpy
  from hypertools.tools import text2mat
  from sklearn.decomposition import LatentDirichletAllocation
label_desc: Use image node_id 8 for calling a global function with example usage: test_vectorizer_params() without return types