(self, node)
return not self.has_children(node)
Check if the given node is a leaf node.

        Parameters
        ----------
        node : object

        Returns
        -------
        object
Check if the given node is a leaf node.
Check if the given node is a leaf node .
def is_leaf(self, node):
        """Check if the given node is a leaf node.

        Parameters
        ----------
        node : object

        Returns
        -------
        object

        """
        return not self.has_children(node)
def is_leaf ( self , node ) : return not self . has_children ( node )