class_docstr: Utilities for calculating IOU/IOS based match for given ObjectPredictions
code: def has_same_category_id(
      pred1: ObjectPrediction, pred2: ObjectPrediction
  ) -> bool:
      return pred1.category.id == pred2.category.id
  
imports: import copy
  from typing import List
  import numpy
  from sahi.annotation import BoundingBox, Category, Mask
  from sahi.postprocess.utils import calculate_area, calculate_box_union, calculate_intersection_area
  from sahi.prediction import ObjectPrediction
label_desc: Use image node_id 4 for calling the PostprocessPredictions obj's underlying member method code with example usage: obj.has_same_category_id(pred1, pred2) and returns: unknown