code: def _save_assignment(self, node, name=None):
          
          if self._global_names and node.name in self._global_names[-1]:
              node.root().set_local(node.name, node)
          else:
              node.parent.set_local(node.name, node)
docs: save assignement situation since node.parent is not available yet