def METHOD_NAME(self, node):
    if node in self.nodes:
        to_prune = self.nodes[node]
        node.targets = [tgt for tgt in node.targets if tgt not in to_prune]
        if node.targets:
            return node
        else:
            return ast.Pass()
    return node