def METHOD_NAME() -> Iterator[_ErrorsHandled]:
    """Track error handling of containers."""
    errs: _ErrorsHandled = {}
    with ExitStack() as cleanup:
        for container in _containers_to_patch():
            for method, patch in _ERROR_HANDLING_PATCHERS.items():
                cleanup.enter_context(mock.patch.object(
                    container,
                    method,
                    patch(getattr(container, method), errs=errs),
                ))
        yield errs