class_docstr: Lazily import module/extension.
class_docstr_tok: ["Lazily","import","module\/extension","."]
code: def _import_once(self):
      if self.module is None:
          self.module = self.import_func()
          # Note:
          # By attaching the module attributes to self,
          # module attributes are directly accessible.
          # This allows to avoid calling __getattr__ for every attribute access.
          self.__dict__.update(self.module.__dict__)
  
imports: import importlib
  import logging
  import os
  import types
  from pathlib import Path
  import torch
label_desc: Use image node_id 5 for calling the _LazyImporter obj's underlying member method code with example usage: obj._import_once() without return types