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","."]
docstr: Enter the context manager.
  
  Returns:
      Itself.
docstr_tok: ["Enter","the","context","manager",".","Returns",":","Itself","."]
code: def __enter__(self) -> "_DeferredImportExceptionContextManager":
      """Enter the context manager.
  
      Returns:
          Itself.
  
      """
      return self
  
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 2 for calling the _DeferredImportExceptionContextManager obj's underlying member method code with example usage: obj.__enter__() and returns: self