code: def reduce(self, body):
          '''
          remove nodes from a list
          '''
          i = 0
          while i < len(body):
              stmnt = body[i]
              if self.visit(stmnt):
                  body.pop(i)
              else:
                  i += f reduce(self, body):
          '''
          remove nodes from a list
          '''
          i = 0
          while i < len(body):
              stmnt = body[i]
              if self.visit(stmnt):
                  body.pop(i)
              else:
                  i += 1
docs: remove nodes from a list