def desc(value):
def normalize_strings(value):<EOL><INDENT>if isinstance(value, list):<EOL><INDENT>value = [normalize_strings(e) for e in value]<EOL><DEDENT>if isinstance(value, dict):<EOL><INDENT>value = {normalize_strings(k): normalize_strings(v) for k, v in iter(value.items())}<EOL><DEDENT>if isregex(value):<EOL><INDENT>value = value.pattern<EOL><DEDENT>if isbytes(value):<EOL><INDENT>value = decode_bytes(value)<EOL><DEDENT>if PY2:<EOL><INDENT>if isstring(value):<EOL><INDENT>value = encode_string(value)<EOL><DEDENT><DEDENT>return value<EOL><DEDENT>value = normalize_strings(value)<EOL>return repr(value)<EOL>
str: A normalized representation for a user-provided value.