def get_name_levels(node):
 visitor = _NodeNameCollector()
 ast.walk(node, visitor)
 return visitor.names

def get_name_levels ( node ) : visitor = _NodeNameCollector ( ) ast . walk ( node , visitor ) return visitor . names
return a list of tuples for assigned names the level is none for simple assignments and is a list of numbers for tuple assignments for example in:: a .