class_docstr: Lazily import a module, mainly to avoid pulling in large dependencies.
  
  `contrib`, and `ffmpeg` are examples of modules that are large and not always
  needed, and this allows them to only be loaded when they are used.
class_docstr_tok: ["Lazily","import","a","module",",","mainly","to","avoid","pulling","in","large","dependencies",".","`","contrib","`",",","and","`","ffmpeg","`","are","examples","of","modules","that","are","large","and","not","always","needed",",","and","this","allows","them","to","only","be","loaded","when","they","are","used","."]
code: def __init__(
      self, local_name, parent_module_globals, name, warning=None
  ):
      self._tfll_local_name = local_name
      self._tfll_parent_module_globals = parent_module_globals
      self._tfll_warning = warning
  
      # These members allows doctest correctly process this module member without
      # triggering self._load(). self._load() mutates parant_module_globals and
      # triggers a dict mutated during iteration error from doctest.py.
      # - for from_module()
      super().__setattr__("__module__", name.rsplit(".", 1)[0])
      # - for is_routine()
      super().__setattr__("__wrapped__", None)
  
      super().__init__(name)
  
imports: import importlib
  import os
  import types
  from tensorflow.python.platform import tf_logging
label_desc: Use image node_id 1 to create a new LazyLoader object from inherited base classes: types with example: obj = LazyLoader(local_name, parent_module_globals, name, warning)