To enable optional usage as a context manager, this function returns a `~contextlib.ExitStack` object, which is not intended to be stored or accessed by the user. F)r