def find_undeclared(nodes, names):
 visitor = UndeclaredNameVisitor(names)
 try:
  for node in nodes:
   visitor.visit(node)
 except VisitorExit:
  pass
 return visitor.undeclared

def find_undeclared ( nodes , names ) : visitor = UndeclaredNameVisitor ( names ) try : for node in nodes : visitor . visit ( node ) except VisitorExit : pass return visitor . undeclared
check if the names passed are accessed undeclared .