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: Create a LazyModule instance wrapping module name.
  
  The module will later on be registered in locals under the
  given module name.
  
  globals is optional and defaults to locals.
docstr_tok: ["Create","a","LazyModule","instance","wrapping","module","name",".","The","module","will","later","on","be","registered","in","locals","under","the","given","module","name",".","globals","is","optional","and","defaults","to","locals","."]
code: def __init__(self, name, locals, globals=None):
      """Create a LazyModule instance wrapping module name.
  
      The module will later on be registered in locals under the
      given module name.
  
      globals is optional and defaults to locals.
  
      """
      self.__lazymodule_locals = locals
      if globals is None:
          globals = locals
      self.__lazymodule_globals = globals
      mainname = globals.get("__name__", "")
      if mainname:
          self.__name__ = mainname + "." + name
          self.__lazymodule_name = name
      else:
          self.__name__ = self.__lazymodule_name = name
      self.__lazymodule_init = 1
  
label_desc: Use image node_id 1 to create a new LazyModule object  with example: obj = LazyModule(name, locals, globals)