def METHOD_NAME(
        use_staged_logger: bool = False) -> DefinitionContext:
    if use_staged_logger:
        unstage_logger()
    pop_log_capturer()
    return _get_definition_context_stack().pop()