code: def get_best_score_item(prediction_items: Collection[Dict]):
      # fill with dummy if list of prediction_items is empty
      dummy = dict(
          predicted_bbox=BBox.from_xyxy(0, 0, 0, 0),
          score=1.0,
          iou_score=1.0,
          predicted_label_id=0,
      )
      best_item = max(
          prediction_items, key=lambda x: x["score"], default=dummy
      )
      return best_item
  
imports: from icevision.imports import *
  from icevision import BBox, BaseRecord
label_desc: Use image node_id 1 for calling a global function with example usage: get_best_score_item(prediction_items) and returns: best_item