code: def test_simple_lists_of_tuples(self):
      # test list words
  
      # one document, one word
      potentialCorpus = [[(0, 4.0)]]
      result = utils.is_corpus(potentialCorpus)
      expected = (True, potentialCorpus)
      self.assertEqual(expected, result)
  
      # one document, several words
      potentialCorpus = [[(0, 4.0), (1, 2.0)]]
      result = utils.is_corpus(potentialCorpus)
      expected = (True, potentialCorpus)
      self.assertEqual(expected, result)
  
      potentialCorpus = [[(0, 4.0), (1, 2.0), (2, 5.0), (3, 8.0)]]
      result = utils.is_corpus(potentialCorpus)
      expected = (True, potentialCorpus)
      self.assertEqual(expected, result)
  
      # several documents, one word
      potentialCorpus = [[(0, 4.0)], [(1, 2.0)]]
      result = utils.is_corpus(potentialCorpus)
      expected = (True, potentialCorpus)
      self.assertEqual(expected, result)
  
      potentialCorpus = [[(0, 4.0)], [(1, 2.0)], [(2, 5.0)], [(3, 8.0)]]
      result = utils.is_corpus(potentialCorpus)
      expected = (True, potentialCorpus)
      self.assertEqual(expected, result)
  
imports: import logging
  import unittest
  import numpy
  from gensim import utils
  from gensim.test.utils import datapath, get_tmpfile
label_desc: Use image node_id 2 for calling the TestIsCorpus obj's underlying member method code with example usage: obj.test_simple_lists_of_tuples() without return types