def decode(self, string, legacy=False):
if legacy:<EOL><INDENT>string = string[::-<NUM_LIT:1>]<EOL><DEDENT>return _uu.UUID(int=string_to_int(string, self._alphabet))<EOL>
Decode a string according to the current alphabet into a UUID
Raises ValueError when encountering illegal characters
or a too-long string.

If string too short, fills leftmost (MSB) bits with 0.

Pass `legacy=True` if your UUID was encoded with a ShortUUID version
prior to 0.6.0.