code: def test_get_document_topics(self):
      doc_topics = self.model.get_document_topics(common_corpus)
  
      for topic in doc_topics:
          self.assertTrue(isinstance(topic, list))
          for k, v in topic:
              self.assertTrue(isinstance(k, numbers.Integral))
              self.assertTrue(np.issubdtype(v, float))
  
      # Test case to use the get_document_topic function for the corpus
      all_topics = self.model.get_document_topics(common_corpus)
  
      print(list(all_topics))
  
      for topic in all_topics:
          self.assertTrue(isinstance(topic, list))
          for k, v in topic:  # list of doc_topics
              self.assertTrue(isinstance(k, numbers.Integral))
              self.assertTrue(np.issubdtype(v, 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 8 for calling the TestNmf obj's underlying member method code with example usage: obj.test_get_document_topics() without return types