nodes: 0, module; 1, function_definition; 2, function_name:sortForSameExpTime; 3, parameters; 4, comment:# , excludeSingleImg=True):; 5, block; 6, identifier:expTimes; 7, identifier:img_paths; 8, expression_statement; 9, expression_statement; 10, for_statement; 11, comment:#     for key in list(d.keys()):; 12, comment:#         if len(d[key]) == 1:; 13, comment:#             print('have only one image of exposure time [%s]' % key); 14, comment:#             print('--> exclude that one'); 15, comment:#             d.pop(key); 16, expression_statement; 17, return_statement; 18, string; 19, assignment; 20, pattern_list; 21, call; 22, block; 23, assignment; 24, expression_list; 25, string_content:return image paths sorted for same exposure time; 26, identifier:d; 27, dictionary; 28, identifier:e; 29, identifier:i; 30, identifier:zip; 31, argument_list; 32, if_statement; 33, expression_statement; 34, identifier:d; 35, call; 36, call; 37, call; 38, identifier:expTimes; 39, identifier:img_paths; 40, comparison_operator:e not in d; 41, block; 42, call; 43, identifier:OrderedDict; 44, argument_list; 45, identifier:list; 46, argument_list; 47, identifier:list; 48, argument_list; 49, identifier:e; 50, identifier:d; 51, expression_statement; 52, attribute; 53, argument_list; 54, call; 55, call; 56, call; 57, assignment; 58, subscript; 59, identifier:append; 60, identifier:i; 61, identifier:sorted; 62, argument_list; 63, attribute; 64, argument_list; 65, attribute; 66, argument_list; 67, subscript; 68, list; 69, identifier:d; 70, identifier:e; 71, call; 72, identifier:d; 73, identifier:keys; 74, identifier:d; 75, identifier:values; 76, identifier:d; 77, identifier:e; 78, attribute; 79, argument_list; 80, identifier:d; 81, identifier:items
code: def sortForSameExpTime(expTimes, img_paths):  # , excludeSingleImg=True):
      '''
      return image paths sorted for same exposure time
      '''
      d = {}
      for e, i in zip(expTimes, img_paths):
          if e not in d:
              d[e] = []
          d[e].append(i)
  #     for key in list(d.keys()):
  #         if len(d[key]) == 1:
  #             print('have only one image of exposure time [%s]' % key)
  #             print('--> exclude that one')
  #             d.pop(key)
      d = OrderedDict(sorted(d.items()))
      return list(d.keys()), list(d.values())