code: def test_top_topic_terms_top_n(vectorizer, model):
      assert (
          len(
              list(
                  model.top_topic_terms(
                      vectorizer.id_to_term, topics=0, top_n=10
                  )
              )[0][1]
          )
          == 10
      )
      assert (
          len(
              list(
                  model.top_topic_terms(
                      vectorizer.id_to_term, topics=0, top_n=5
                  )
              )[0][1]
          )
          == 5
      )
  
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 13 for calling a global function with example usage: test_top_topic_terms_top_n(vectorizer, model) without return types