code: def doc_term_matrix(term_lists, vectorizer):
      doc_term_matrix_ = vectorizer.fit_transform(term_lists)
      return doc_term_matrix_
  
imports: import numpy
  import pytest
  from sklearn.decomposition import NMF, LatentDirichletAllocation, TruncatedSVD
  from textacy import Corpus
  from textacy import extract
  from textacy.tm import TopicModel
  from textacy.representations import Vectorizer
label_desc: Use image node_id 3 for calling a global function with example usage: doc_term_matrix(term_lists, vectorizer) and returns: doc_term_matrix_