code: def visit_Stmt(self, node):
          
          save_defs, self.defs = self.defs or list(), list()
          self.generic_visit(node)
          new_defs, self.defs = self.defs, save_defs
          return new_defs + [node]
docs: Add new variable definition before the Statement.