def is_leaf(self):
            return not self.children and not self.is_root()
Returns whether the node is a leaf.
dataset/ETHPy150Open mikhaildubov/AST-text-analysis/east/asts/ast.py/AnnotatedSuffixTree.Node.is_leaf