nodes: 0, module; 1, function_definition; 2, function_name:get_rows; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, expression_statement; 8, expression_statement; 9, for_statement; 10, return_statement; 11, identifier:sort; 12, False; 13, comment:"""
          Returns the rows of this Type2Helper.
  
          :param bool sort: If True the rows are sorted by the pseudo key.
          """; 14, assignment; 15, pattern_list; 16, conditional_expression:sorted(self._rows.items()) if sort else self._rows.items(); 17, block; 18, identifier:ret; 19, identifier:ret; 20, list; 21, identifier:_; 22, identifier:rows; 23, call; 24, identifier:sort; 25, call; 26, expression_statement; 27, expression_statement; 28, identifier:sorted; 29, argument_list; 30, attribute; 31, argument_list; 32, call; 33, call; 34, call; 35, attribute; 36, identifier:items; 37, attribute; 38, argument_list; 39, attribute; 40, argument_list; 41, attribute; 42, argument_list; 43, identifier:self; 44, identifier:_rows; 45, identifier:self; 46, identifier:_rows_int2date; 47, identifier:rows; 48, identifier:ret; 49, identifier:extend; 50, identifier:rows; 51, attribute; 52, identifier:items; 53, identifier:self; 54, identifier:_rows
code: def get_rows(self, sort=False):
          """
          Returns the rows of this Type2Helper.
  
          :param bool sort: If True the rows are sorted by the pseudo key.
          """
          ret = []
          for _, rows in sorted(self._rows.items()) if sort else self._rows.items():
              self._rows_int2date(rows)
              ret.extend(rows)
  
          return ret