code: def _group_by_size_greedy(obj_list, tot_groups):
      sorted_list = sorted(obj_list, key=lambda x: x['size'], reverse=True)
      groups = [[] for _ in range(tot_groups)]
      for index, obj in enumerate(sorted_list):
          current_group = groups[index % len(groups)]
          current_group.append(obj)
      return groups