code: def increment(method):
          
          if not hasattr(method, '__context'):
              raise ContextException("Method does not have context!")
          ctxt = getattr(method, '__context')
          ctxt.enter()
          return ctxt
docs: 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.