class_docstr: Context manager to defer exceptions from imports.
  
  Catches :exc:`ImportError` and :exc:`SyntaxError`.
  If any exception is caught, this class raises an :exc:`ImportError` when being checked.
class_docstr_tok: ["Context","manager","to","defer","exceptions","from","imports",".","Catches",":","exc",":","`","ImportError","`","and",":","exc",":","`","SyntaxError","`",".","If","any","exception","is","caught",",","this","class","raises","an",":","exc",":","`","ImportError","`","when","being","checked","."]
code: def __init__(self) -> None:
      self._deferred: Optional[Tuple[Exception, str]] = None
  
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 _DeferredImportExceptionContextManager object  with example: obj = _DeferredImportExceptionContextManager()