def METHOD_NAME(self) -> Dict[str, Any]:
    """
    Return the currently stored, thread-local logs from inside this
    context manager. If called after exiting the context manager, the
    final collection of logs captured at the time of exit is returned.
    Returns
    -------
    logs : Dict[str, Any]
        Dictionary of logs collected within this context manager.
    """
    return self._logs_dict or _get_thread_logs()