code: def test_tfidf_NMF():
      isinstance(
          text2mat(
              data,
              vectorizer="TfidfVectorizer",
              semantic="NMF",
              corpus=data,
          )[0],
          np.ndarray,
      )
  
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 5 for calling a global function with example usage: test_tfidf_NMF() without return types