def comparator(func):
def comparator_wrapper(to_validate, constraint, violation_cfg):<EOL><INDENT>return func(to_validate, constraint, violation_cfg)<EOL><DEDENT>return comparator_wrapper<EOL>
@comparator decorator function
:param func: comparator function
:return: comparator function result