code: def predict_throughput_pack_sum(raw_preds, pack_ids):
      """Predict the throughputs for predictions in pack-sum format
      Parameters
      ----------
      raw_preds: np.ndarray
          The raw predictions
      pack_ids: List[int]
          The pack id for predictions
      Returns
      -------
      throughputs: np.ndarray
          The throughput
      """
      sum_pred = np.bincount(pack_ids, weights=raw_preds)
      return sum_pred
  
imports: import multiprocessing
  import logging
  from typing import Dict
  from collections import defaultdict
  import numpy
  from tvm.autotvm.tuner.metric import max_curve
  from .cost_model import PythonBasedModel
  from ..feature import get_per_store_features_from_measure_pairs, get_per_store_features_from_states
  from ..measure_record import RecordReader
label_desc: Use image node_id 3 for calling a global function with example usage: predict_throughput_pack_sum(raw_preds, pack_ids) and returns: sum_pred