code: def filter_by(cls, **kwargs):
          
          limit = kwargs.pop('limit', None)
          reverse = kwargs.pop('reverse', False)
          q = cls.query.filter_by(**kwargs)
          if reverse:
              q = q.order_by(cls.id.desc())
          if limit:
              q = q.limit(limit)
          return q
docs: Same as SQLAlchemy's filter_by. Additionally this accepts
          two special keyword arguments `limit` and `reverse` for limiting
          the results and reversing the order respectively.
  
          Args:
  
              **kwargs: filter parameters
  
          Examples:
  
              >>> user = User.filter_by(email="new@x.com")
  
              >>> shipments = Shipment.filter_by(country="India", limit=3, reverse=True)