def _quota_reservations(session, context, reservations):
 return model_query(context, models.Reservation, read_deleted='no', session=session).filter(models.Reservation.uuid.in_(reservations)).with_lockmode('update').all()

def _quota_reservations ( session , context , reservations ) : return model_query ( context , models . Reservation , read_deleted = 'no' , session = session ) . filter ( models . Reservation . uuid . in_ ( reservations ) ) . with_lockmode ( 'update' ) . all ( )
return the relevant reservations .