def encode_mysql_literal(value):
return pymysql.converters.escape_item(value, "<STR_LIT:utf-8>")<EOL>
Converts given Python value into MySQL literal, suitable to be used inside
`INSERT INTO` statement.

:param value: Value to convert into MySQL literal.
:type value: any

:return: Given value encoded into MySQL literal.
:rtype: str