def METHOD_NAME(self):
    """Hash function.
    This is the method to potentially override in derived classes,
    not :meth:`__hash__`.
    """
    return hash((type(self),) + self._cons_args(self.children))