def METHOD_NAME(self, name, recursive=False):
    """Recursively find all child atoms by specified name."""
    if self.children is not None:
        for child in self.children:
            if child.name == name:
                yield child
            if recursive:
                for atom in child.METHOD_NAME(name, True):
                    yield atom