<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def validate(instance):
 """ Validates a given ``instance``. :param object instance: The instance to validate :raises jsonschema.exceptions.ValidationError: On failed validation """


    jsonschema.validate(
        to_dict(instance, dict_type=dict), build_schema(instance.__class__)
    )