def parse_action(action_id):
    """ Get action label from PES event's action id """
    labels = ('Present', 'Removed', 'Deprecated', 'Replaced', 'Split', 'Merged', 'Moved', 'Renamed')

    if action_id < 0 or action_id >= len(labels):
        raise ValueError('Found event with invalid action ID: {}'. format(action_id))

    return labels[action_id]