code: def _get_filtered_stmts(self, lookup_node, node, stmts, mystmt):
          
          if self is mystmt:
              if isinstance(lookup_node, (Const, Name)):
                  return [lookup_node], True
  
          elif self.statement() is mystmt:
              # original node's statement is the assignment, only keeps
              # current node (gen exp, list comp)
  
              return [node], True
  
          return stmts, False
docs: method used in filter_stmts