@classmethod<EOL><INDENT>def compare_safe(cls, value):<DEDENT>
<EOL>if type(value) == date:<EOL><INDENT>return str(value)<EOL><DEDENT>elif isinstance(value, (list, tuple)):<EOL><INDENT>return [cls.compare_safe(v) for v in value]<EOL><DEDENT>elif isinstance(value, dict):<EOL><INDENT>return {k: cls.compare_safe(v) for k, v in value.items()}<EOL><DEDENT>return value<EOL>
Return a value that can be safely compared