code: def test_n_topics():
      for model in ["nmf", "lda", "lsa"]:
          assert TopicModel(model, n_topics=20).n_topics == 20
  
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 5 for calling a global function with example usage: test_n_topics() without return types