

def nested_str(self, level=0):
    ss = (self.classnm + '\n')
    ss += '\n'.join([l.nested_str((level + 1)) for l in self.layers])
    return ss

dataset/ETHPy150Open NervanaSystems/neon/neon/layers/container.py Tree.nested_str/original