code: def validate_kwargs(self, kwargs):
          
          if not self.response_type:
              msg = "response_type must be set on the Response subclass."
              raise ValidationException(msg)
  
          if (self.key_name and self.key_name in kwargs) or "type" in kwargs:
              name = self.__class__.__name__
              msg = "%s is an invalid argument for %s" % (self.key_name, name)
              raise ValidationException(msg)
docs: Validates expected subclass attributes and constructor keyword
          arguments.