<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def increment(method):
 """ Static method used to increment the depth of a context belonging to 'method' :param function method: A method with a context :rtype: caliendo.hooks.Context :returns: The context instance for the method. """

        if not hasattr(method, '__context'):
            raise ContextException("Method does not have context!")
        ctxt = getattr(method, '__context')
        ctxt.enter()
        return ctxt