code: def dispatch(self, message):
          
  
          for validator, callback in self.validators:
              if not validator.matches(message):
                  continue
  
              callback(message)
              return
  
          raise ArgumentError("No handler was registered for message", message=message)
docs: Dispatch a message to a callback based on its schema.
  
          Args:
              message (dict): The message to dispatch