Add with_context classmethod to DecoratorBase in decorators.py.
Fixed with_context classmethod to not set a permanent global state.
tests for with_context