code: def matches(self, msg_seq: int, msg: MessageInterface) -> bool:
          
          return all(crit.matches(msg_seq, msg) for crit in self.all_criteria)
docs: The message matches if all the defined search key criteria match.
  
          Args:
              msg_seq: The message sequence ID.
              msg: The message object.