Set the current state of the decoder. state must have been returned by getstate(). The effect of setstate((b"", 0)) must be equivalent to reset().
codecs/IncrementalDecoder.setstate
IncrementalDecoder.setstate