def _print_tree(node, level=0):

    if type(node) is list:
        print ("    " * level) + ", ".join(str(s) for s in node[0:3])
        if len(node) > 3:
            _print_tree(node[3], level + 1)
        if len(node) > 4:
            _print_tree(node[4], level + 1)
    else:
        print ("    " * level) + str(node)
print tree with indentation
dataset/ETHPy150Open NervanaSystems/neon/neon/backends/float_ew.py/_print_tree