code: def test_term_topics(self):
      # check with word_type
      result = self.model.get_term_topics(2)
      for topic_no, probability in result:
          self.assertTrue(isinstance(topic_no, int))
          self.assertTrue(np.issubdtype(probability, float))
  
      # if user has entered word instead, check with word
      result = self.model.get_term_topics(str(self.model.id2word[2]))
      for topic_no, probability in result:
          self.assertTrue(isinstance(topic_no, int))
          self.assertTrue(np.issubdtype(probability, float))
  
imports: import unittest
  import copy
  import logging
  import numbers
  import numpy
  from gensim import matutils
  from gensim.models import nmf
  from gensim.test import basetmtests
  from gensim.test.utils import datapath, get_tmpfile, common_corpus, common_dictionary
label_desc: Use image node_id 9 for calling the TestNmf obj's underlying member method code with example usage: obj.test_term_topics() without return types