This is a backport of the BaseExceptionGroup and ExceptionGroup
classes from Python 3.11.
