code: def _unpack_raw_bboxes(raw_bboxes):
      stack_raw_bboxes = np.vstack(raw_bboxes)
  
      scores = stack_raw_bboxes[:, -1]
      bboxes = stack_raw_bboxes[:, :-1]
  
      # each item in raw_pred is an array of predictions of it's `i` class
      labels = [
          np.full(o.shape[0], i, dtype=np.int32)
          for i, o in enumerate(raw_bboxes)
      ]
      labels = np.concatenate(labels)
  
      return scores, labels, bboxes
  
file_path: icevision/icevision/models/mmdet/common/bbox/prediction.py
imports: from icevision.imports import *
  from icevision.utils import *
  from icevision.core import *
  from icevision.data import *
  from icevision.models.utils import _predict_from_dl
  from icevision.models.mmdet.common.utils import *
  from icevision.models.mmdet.common.bbox.dataloaders import build_infer_batch
  from icevision.models.mmdet.common.utils import convert_background_from_last_to_zero
  from icevision.models.inference import *
label_desc: Use image node_id 6 for calling a global function with example usage: _unpack_raw_bboxes(raw_bboxes) and returns: scores,  labels,  bboxes