def arg_get_preds_action(node):
    """
    Returns a pair: preds, action
    """
    if node.pred is not None:
        return [node.pred], node.action

    elif hasattr(node, 'join_of') and node.join_of is not None:
        return node.join_of, 'join'

    else:
        assert False