def has_children(self, node):

        # Determine the node type for this node.
        node_type = self.node_manager.get_node_type(node)

        if node_type.allows_children(node):
            has_children = node_type.has_children(node)

        else:
            has_children = False

        return has_children
Returns True if a node has children, otherwise False.
dataset/ETHPy150Open enthought/pyface/pyface/tree/node_tree_model.py/NodeTreeModel.has_children