nodes: 0, module; 1, function_definition; 2, function_name:iteritems; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, expression_statement; 8, for_statement; 9, comment:""" Sort and then iterate the dictionary """; 10, assignment; 11, pattern_list; 12, identifier:sorted_data; 13, block; 14, identifier:sorted_data; 15, call; 16, identifier:k; 17, identifier:v; 18, expression_statement; 19, identifier:sorted; 20, argument_list; 21, yield; 22, call; 23, attribute; 24, attribute; 25, attribute; 26, expression_list; 27, attribute; 28, argument_list; 29, identifier:self; 30, identifier:cmp; 31, identifier:self; 32, identifier:key; 33, identifier:self; 34, identifier:reverse; 35, identifier:k; 36, identifier:v; 37, attribute; 38, identifier:iteritems; 39, identifier:self; 40, identifier:data
code: def iteritems(self):
          """ Sort and then iterate the dictionary """
          sorted_data = sorted(self.data.iteritems(), self.cmp, self.key,
                               self.reverse)
          for k,v in sorted_data:
              yield k,v