def METHOD_NAME(self, node=None, **kwargs):
    if node is None:
        node = self
    for listen in self.listeners:
        if hasattr(listen, "node_attached"):
            listen.node_attached(node, **kwargs)