'Args:
event: the event set actions for
tuples: list of tuples of (user_id, actions)'

def _set_push_actions_for_event_and_users_txn(self, txn, event, tuples):

    values = []
    for (uid, actions) in tuples:
        is_highlight = (1 if _action_has_highlight(actions) else 0)
        values.append({'room_id': event.room_id, 'event_id': event.event_id, 'user_id': uid, 'actions': _serialize_action(actions, is_highlight), 'stream_ordering': event.internal_metadata.stream_ordering, 'topological_ordering': event.depth, 'notif': 1, 'highlight': is_highlight})
    for (uid, __) in tuples:
        txn.call_after(self.get_unread_event_push_actions_by_room_for_user.invalidate_many, (event.room_id, uid))
    self._simple_insert_many_txn(txn, 'event_push_actions', values)
