code: def test_generator(self):
      model_1 = nmf.Nmf(
          iter(common_corpus * 100),
          id2word=common_dictionary,
          chunksize=1,
          num_topics=2,
          passes=1,
          random_state=42,
      )
  
      model_2 = nmf.Nmf(
          common_corpus * 100,
          id2word=common_dictionary,
          chunksize=1,
          num_topics=2,
          passes=1,
          random_state=42,
      )
  
      self.assertTrue(
          np.allclose(model_1.get_topics(), model_2.get_topics())
      )
  
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 2 for calling the TestNmf obj's underlying member method code with example usage: obj.test_generator() without return types