class_docstr: Module class that surfaces all objects but only performs associated imports when the objects are requested.
class_docstr_tok: ["Module","class","that","surfaces","all","objects","but","only","performs","associated","imports","when","the","objects","are","requested","."]
code: def __getattr__(self, name: str) -> Any:
      if name in self._objects:
          return self._objects[name]
      if name in self._modules:
          value = self._get_module(name)
      elif name in self._class_to_module.keys():
          module = self._get_module(self._class_to_module[name])
          value = getattr(module, name)
      else:
          raise AttributeError(
              f"module {self.__name__} has no attribute {name}"
          )
  
      setattr(self, name, value)
      return value
  
imports: from typing import Any, BinaryIO, Dict, List, Optional, Tuple, Union
  import sys
  import os
  import logging
  import importlib.util
  from types import ModuleType
label_desc: Use image node_id 3 for calling the _LazyModule obj's underlying member method code with example usage: obj.__getattr__(name) and returns: value, self