docstr: Define this so we can use `len(corpus)`
docstr_tok: ["Define","this","so","we","can","use","`","len","(","corpus",")","`"]
code: def __len__(self):
      """Define this so we can use `len(corpus)`"""
      if "length" not in self.__dict__:
          logger.info(
              "caching corpus size (calculating number of documents)"
          )
          self.length = sum(1 for _ in self.get_texts())
      return self.length
  
file_path: gensim/gensim/test/test_miislita.py
imports: from __future__ import division
  from __future__ import with_statement
  import logging
  import os
  import unittest
  from gensim import utils, corpora, models, similarities
  from gensim.test.utils import datapath, get_tmpfile
label_desc: Use image node_id 2 for calling the CorpusMiislita obj's underlying member method code with example usage: obj.__len__() and returns: self