def serialize(expr):
result = None<EOL>if isinstance(expr, string_types):<EOL><INDENT>result = expr<EOL><DEDENT>elif expr is not None:<EOL><INDENT>result = '<STR_LIT>'.format(expr)<EOL><DEDENT>return result<EOL>
Serialize input expr into a parsable value.

    :rtype: str