parameters: (self, state)
docstring: Set the current state of the encoder. state must have been
          returned by getstate().
docstring_summary: Set the current state of the encoder. state must have been
          returned by getstate().
docstring_tokens: Set the current state of the encoder . state must have been returned by getstate () .
function: def setstate(self, state):
          """
          Set the current state of the encoder. state must have been
          returned by getstate().
          """
function_tokens: def setstate ( self , state ) :