def METHOD_NAME(self, *args, **kwargs):
    if not isinstance(self._wrapped_protocol, TCompactProtocol):
        return func(self, *args, **kwargs)
    try:
        return func(self, *args, **kwargs)
    except Exception:
        self._wrapped_protocol.state = CLEAR
        raise