def METHOD_NAME(self, node):
    """
    Args: node which is an Astroid Node.
    A generator for the children's of a given astroid node.
    """
    try:
        for subnode in list(node.get_children()):
            yield subnode
            yield from self.METHOD_NAME(subnode)
    except AttributeError:
        yield node
    except TypeError:
        yield node