code: def _validate(self, data):
          
  
          errors = {}
  
          # if the validator is not enabled, return the empty error dict
          if not self._enabled:
              return errors
  
          for field in self.validators:
  
              field_errors = []
  
              for validator in self.validators[field]:
                  try:
                      validator(data.get(field, None))
                  except ValidationError as e:
                      field_errors += e.messages
  
              # if there were errors, cast to ErrorList for output convenience
              if field_errors:
                  errors[field] = ErrorList(field_errors)
  
          return errors
docs: Helper to run validators on the field data.