def decode_mysql_string_literal(text):
assert text.startswith("<STR_LIT:'>")<EOL>assert text.endswith("<STR_LIT:'>")<EOL>text = text[<NUM_LIT:1>:-<NUM_LIT:1>]<EOL>return MYSQL_STRING_ESCAPE_SEQUENCE_PATTERN.sub(<EOL>unescape_single_character,<EOL>text,<EOL>)<EOL>
Removes quotes and decodes escape sequences from given MySQL string literal
returning the result.

:param text: MySQL string literal, with the quotes still included.
:type text: str

:return: Given string literal with quotes removed and escape sequences
         decoded.
:rtype: str