def METHOD_NAME(validator_class):  # type: ignore
    validate_properties = validator_class.VALIDATORS["properties"]
    def _set_defaults(validator, properties, instance, schema):  # type: ignore
        for property, subschema in properties.items():
            if "default" in subschema:
                instance.setdefault(property, subschema["default"])
        for error in validate_properties(
            validator,
            properties,
            instance,
            schema,
        ):
            yield error
    return validators.extend(
        validator_class,
        {"properties": _set_defaults},
    )