class_docstr: Lazy module class.
  
  Lazy modules are imported into the given namespaces whenever a
  non-special attribute (there are some attributes like __doc__
  that class instances handle without calling __getattr__) is
  requested. The module is then registered under the given name
  in locals usually replacing the import wrapper instance. The
  import itself is done using globals as global namespace.
  
  Example of creating a lazy load module:
  
  ISO = LazyModule('ISO',locals(),globals())
  
  Later, requesting an attribute from ISO will load the module
  automatically into the locals() namespace, overriding the
  LazyModule instance:
  
  t = ISO.Week(1998,1,1)
class_docstr_tok: ["Lazy","module","class",".","Lazy","modules","are","imported","into","the","given","namespaces","whenever","a","non-special","attribute","(","there","are","some","attributes","like","__doc__","that","class","instances","handle","without","calling","__getattr__",")","is","requested",".","The","module","is","then","registered","under","the","given","name","in","locals","usually","replacing","the","import","wrapper","instance",".","The","import","itself","is","done","using","globals","as","global","namespace",".","Example","of","creating","a","lazy","load","module",":","ISO","=","LazyModule","(","'ISO","'",",","locals","(",")",",","globals","(",")",")","Later",",","requesting","an","attribute","from","ISO","will","load","the","module","automatically","into","the","locals","(",")","namespace",",","overriding","the","LazyModule","instance",":","t","=","ISO.Week","(","1998,1,1",")"]
docstr: Import the module now.
docstr_tok: ["Import","the","module","now","."]
code: def __lazymodule_import(self):
      """Import the module now."""
      # Load and register module
      local_name = self.__lazymodule_name  # e.g. "toolbox"
      full_name = self.__name__  # e.g. "nltk.toolbox"
      if self.__lazymodule_loaded:
          return self.__lazymodule_locals[local_name]
      if _debug:
          print("LazyModule: Loading module %r" % full_name)
      self.__lazymodule_locals[local_name] = module = __import__(
          full_name,
          self.__lazymodule_locals,
          self.__lazymodule_globals,
          "*",
      )
  
      # Fill namespace with all symbols from original module to
      # provide faster access.
      self.__dict__.update(module.__dict__)
  
      # Set import flag
      self.__dict__["__lazymodule_loaded"] = 1
  
      if _debug:
          print("LazyModule: Module %r loaded" % full_name)
      return module
  
label_desc: Use image node_id 2 for calling the LazyModule obj's underlying member method code with example usage: obj.__lazymodule_import() and returns: module, self