docs: def get_and_update(cls, id, **kwargs):
          """Returns an updated instance of the service's model class.
  
          Args:
              model: the model to update
              **kwargs: update parameters
          """
          model = cls.get(id)
          for k, v in cls._preprocess_params(kwargs).items():
              setattr(model, k, v)
          cls.session.commit()
          return model