code: def add_messages(self, validation):
          
          if not isinstance(validation, Validation):
              raise TypeError("Argument must be of type Validation")
  
          self.messages.extend(validation.messages)
docs: Adds all the messages in the specified `Validation` object to this instance's
          messages array.
  
          Args:
              validation (Validation): An object containing the messages to add to this instance's messages.