docstr: Test creating a model using a generator as input; should fail.
docstr_tok: ["Test","creating","a","model","using","a","generator","as","input",";","should","fail","."]
code: def test_generator_fail(self):
      """Test creating a model using a generator as input; should fail."""
  
      def get_generator(test_corpus=TestLogEntropyModel.TEST_CORPUS):
          for test_doc in test_corpus:
              yield test_doc
  
      self.assertRaises(
          ValueError,
          logentropy_model.LogEntropyModel,
          corpus=get_generator(),
      )
  
file_path: gensim/gensim/test/test_logentropy_model.py
imports: import logging
  import unittest
  import numpy
  from gensim.corpora.mmcorpus import MmCorpus
  from gensim.models import logentropy_model
  from gensim.test.utils import datapath, get_tmpfile
label_desc: Use image node_id 2 for calling the TestLogEntropyModel obj's underlying member method code with example usage: obj.test_generator_fail() without return types