'Override the default visitor for Node.
This will set the blank lines required if the last entity was a class or
function.
Arguments:
node: (pytree.Node) The node to visit.'

def DefaultNodeVisit(self, node):

    if self.last_was_class_or_function:
        if (pytree_utils.NodeName(node) in _PYTHON_STATEMENTS):
            leaf = _GetFirstChildLeaf(node)
            self._SetNumNewlines(leaf, self._GetNumNewlines(leaf))
    self.last_was_class_or_function = False
    super(_BlankLineCalculator, self).DefaultNodeVisit(node)
