code: def combine_partial_results(partial_results) -> List:
      """Concatenate partial results into one file, then sort it by id."""
      records = []
      for partial_result in partial_results:
          records.extend(partial_result)
      records = list(sorted(records, key=lambda x: x["id"]))
      preds = [x["pred"] for x in records]
      return preds
  
file_path: H2O/h2o_flexgen/benchmark/third_party/transformers/examples/legacy/seq2seq/run_distributed_eval.py
imports: import argparse
  import shutil
  import time
  from json import JSONDecodeError
  from logging import getLogger
  from pathlib import Path
  from typing import Dict, List
  import torch
  from torch.utils.data import DataLoader
  from tqdm import tqdm
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
  from utils import Seq2SeqDataset, calculate_bleu, calculate_rouge, chunks, lmap, load_json, parse_numeric_n_bool_cl_kwargs, save_json, use_task_specific_params, write_txt_file
label_desc: Use image node_id 3 for calling a global function with example usage: combine_partial_results(partial_results) and returns: preds