code: def test_term_topics(self):
      model = self.class_(
          corpus,
          author2doc=author2doc,
          id2word=dictionary,
          num_topics=2,
          passes=100,
          random_state=np.random.seed(0),
      )
  
      # check with word_type
      result = model.get_term_topics(2)
      for topic_no, probability in result:
          self.assertTrue(isinstance(topic_no, int))
          self.assertTrue(isinstance(probability, float))
  
      # if user has entered word instead, check with word
      result = model.get_term_topics(str(model.id2word[2]))
      for topic_no, probability in result:
          self.assertTrue(isinstance(topic_no, int))
          self.assertTrue(isinstance(probability, float))
  
imports: import logging
  import unittest
  import numbers
  from os import remove
  import numpy
  from gensim.corpora import mmcorpus, Dictionary
  from gensim.models import atmodel
  from gensim import matutils
  from gensim.test import basetmtests
  from gensim.test.utils import datapath, get_tmpfile, common_texts, common_dictionary, common_corpus
  from gensim.matutils import jensen_shannon
label_desc: Use image node_id 19 for calling the TestAuthorTopicModel obj's underlying member method code with example usage: obj.test_term_topics() without return types