def METHOD_NAME(self) -> None:
    """Check whether the context manager has caught any exceptions.
    Raises:
        :exc:`ImportError`:
            If any exception was caught from the caught exception.
    """
    if self._deferred is not None:
        exc_value, message = self._deferred
        raise ImportError(message) from exc_value