def __coerce_to_generator_func(self, func):
        if inspect.isgeneratorfunction(func):
            return func

        @functools.wraps(func)
        def generator_func(*args, **kwargs):
            func(*args, **kwargs)
            yield
        return generator_func
It should not raise errors because ExtendedDraft4Validator is used,
dataset/ETHPy150Open Xion/pyqcy/pyqcy/properties.py/Property.__coerce_to_generator_func--crossover with--dataset/ETHPy150Open hfaran/Tornado-JSON/tests/func_test.py/APIFunctionalTest.test_post_custom_validator_class