code: def get_merged_category(
      pred1: ObjectPrediction, pred2: ObjectPrediction
  ) -> Category:
      if pred1.score.value > pred2.score.value:
          return pred1.category
      else:
          return pred2.category
  
imports: from collections.abc import Sequence
  from typing import List, Union
  import numpy
  import torch
  from sahi.annotation import BoundingBox, Category, Mask
  from sahi.prediction import ObjectPrediction
label_desc: Use image node_id 12 for calling a global function with example usage: get_merged_category(pred1, pred2) and returns: pred1, pred2