def METHOD_NAME(self, raw_selector_string):
    selector = Selector(raw_selector_string)
    with self.lock:
        for node in self.iter_nodes():
            if selector.match(node):
                return node