def parse_values(text):
assert text.startswith("<STR_LIT:(>")<EOL>pos = <NUM_LIT:1><EOL>values = []<EOL>text_len = len(text)<EOL>while pos < text_len:<EOL><INDENT>match = VALUE_PATTERN.match(text, pos)<EOL>if not match:<EOL><INDENT>break<EOL><DEDENT>value = match.group(<NUM_LIT:1>)<EOL>values.append(decode_mysql_literal(value.strip()))<EOL>pos += len(value) + <NUM_LIT:1><EOL>if match.group(<NUM_LIT:2>) == "<STR_LIT:)>":<EOL><INDENT>pos += <NUM_LIT:2><EOL>yield tuple(values)<EOL>values = []<EOL><DEDENT><DEDENT>
Parses values from a string containing values from extended format `INSERT
INTO` statement. Values will be yielded from the function as tuples, with
one tuple per row in the table.

:param text: Text extracted from MySQL's `INSERT INTO` statement containing
             quoted and comma separated column values.
:type text: str