def clean(self, value):
        """
        Validates the given value and returns its "cleaned" value as an
        appropriate Python object.

        Raises ValidationError for any errors.
        """
        if self.required and value in EMPTY_VALUES:
            raise ValidationError(self.error_messages['required'])
        return value
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/forms/fields.py/Field.clean/original