(l)
Convert list to optree recursively.
Convert list to optree recursively.
Convert list to optree recursively .
def list_to_optree(l):
        """
        Convert list to optree recursively.
        """
        if isinstance(l, list):
            return OpTreeNode(*list(map(OpTreeNode.list_to_optree, l)))
        else:
            return l
def list_to_optree ( l ) : if isinstance ( l , list ) : return OpTreeNode ( * list ( map ( OpTreeNode . list_to_optree , l ) ) ) else : return l