<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(self, instance, value):
 """Check that value is a valid UUID instance"""

        if not isinstance(value, uuid.UUID):
            self.error(instance, value)
        return value