code: def test_get_doc_topic_matrix(doc_term_matrix, model):
      expected = np.array([1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0])
      observed = model.get_doc_topic_matrix(
          doc_term_matrix, normalize=True
      ).sum(axis=1)
      assert np.equal(observed, expected).all()
  
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 10 for calling a global function with example usage: test_get_doc_topic_matrix(doc_term_matrix, model) without return types