def METHOD_NAME(self, node):
    if isinstance(node.ctx, _ast.Store):
        # this is eqiuvalent to visit_AssName in
        # compiler
        self._add_declared(node.id)
    elif (
        node.id not in reserved
        and node.id not in self.listener.declared_identifiers
        and node.id not in self.local_ident_stack
    ):
        self.listener.undeclared_identifiers.add(node.id)