def clean_context() -> t.Generator[contextlib.ExitStack, None, None]:
    """
    Create a ExitStack to cleanup contextmanager.
    This fixture is available to all tests.
    """
    stack = contextlib.ExitStack()
    yield stack
    stack.close()
Create a ExitStack to cleanup contextmanager.
This fixture is available to all tests.
src/bentoml/testing/pytest/plugin.py