code: def local_scope(self):
          
          self.scope = self.scope.new_child()
          try:
              yield self.scope
          finally:
              self.scope = self.scope.parents
docs: Assign symbols to local variables.