code: def _validate(self):
          
          errors = {}
  
          for name, validator in self._validators.items():
              value = getattr(self, name)
  
              try:
                  validator(self, value)
              except ValidationError as e:
                  errors[name] = str(e)
  
          self._validate_errors = errors
docs: Validate model data and save errors