class_docstr: Wrapper for TF modules to support deprecation messages and lazyloading.
docstr: Imports and caches pre-defined API.
  
  Warns if necessary.
  
  This method is a replacement for __getattr__(). It will be added into the
  extended python module as a callback to reduce API overhead. Instead of
  relying on implicit AttributeError handling, this added callback function
  will
  be called explicitly from the extended C API if the default attribute lookup
  fails.
docstr_tok: ["Imports","and","caches","pre-defined","API",".","Warns","if","necessary",".","This","method","is","a","replacement","for","__getattr__","(",")",".","It","will","be","added","into","the","extended","python","module","as","a","callback","to","reduce","API","overhead",".","Instead","of","relying","on","implicit","AttributeError","handling",",","this","added","callback","function","will","be","called","explicitly","from","the","extended","C","API","if","the","default","attribute","lookup","fails","."]
code: def _getattr(self, name):
      # pylint: disable=g-doc-return-or-yield,g-doc-args
      """Imports and caches pre-defined API.
  
      Warns if necessary.
  
      This method is a replacement for __getattr__(). It will be added into the
      extended python module as a callback to reduce API overhead. Instead of
      relying on implicit AttributeError handling, this added callback function
      will
      be called explicitly from the extended C API if the default attribute lookup
      fails.
      """
      try:
          attr = getattr(self._tfmw_wrapped_module, name)
      except AttributeError:
          # Placeholder for Google-internal contrib error
  
          if not self._tfmw_public_apis:
              raise
          if name not in self._tfmw_public_apis:
              raise
          attr = self._tfmw_import_module(name)
  
      if self._tfmw_print_deprecation_warnings:
          self._tfmw_add_deprecation_warning(name, attr)
      return attr
  
imports: import importlib
  from tensorflow.python.eager import monitoring
  from tensorflow.python.platform import tf_logging
  from tensorflow.python.util import fast_module_type
  from tensorflow.python.util import tf_decorator
  from tensorflow.python.util import tf_inspect
  from tensorflow.tools.compatibility import all_renames_v2
label_desc: Use image node_id 5 for calling the TFModuleWrapper obj's underlying member method code with example usage: obj._getattr(name) and returns: attr