def _flatten_nodes(node_info):
    """
    Reformat node data that was formerly nested into one flat array.
    """
    if not node_info:
        return []
    return [node_info[0]] + _flatten_nodes(node_info[1])