class_docstr: Module wrapper for lazy import.
  
  This class wraps the specified modules and lazily imports them only when accessed.
  Otherwise, `import optuna` is slowed down by importing all submodules and
  dependencies even if not required.
  Within this project's usage, importlib override this module's attribute on the first
  access and the imported submodule is directly accessed from the second access.
  
  Args:
      name: Name of module to apply lazy import.
class_docstr_tok: ["Module","wrapper","for","lazy","import",".","This","class","wraps","the","specified","modules","and","lazily","imports","them","only","when","accessed",".","Otherwise",",","`","import","optuna","`","is","slowed","down","by","importing","all","submodules","and","dependencies","even","if","not","required",".","Within","this","project","'s","usage",",","importlib","override","this","module","'s","attribute","on","the","first","access","and","the","imported","submodule","is","directly","accessed","from","the","second","access",".","Args",":","name",":","Name","of","module","to","apply","lazy","import","."]
code: def __init__(self, name: str) -> None:
      super().__init__(name)
      self._name = name
  
file_path: optuna/optuna/_imports.py
imports: import importlib
  import types
  from types import TracebackType
  from typing import Any
  from typing import Optional
  from typing import Tuple
  from typing import Type
label_desc: Use image node_id 1 to create a new _LazyImport object from inherited base classes: types with example: obj = _LazyImport(name)