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

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