code: def update(self, **kwargs):
          
          self.validate(**kwargs)
          for attr, value in kwargs.items():
              setattr(self, attr, value)
          return self
docs: Update fields on the model.
  
          :param kwargs: The model attribute values to update the model with.