class_docstr: Utilities for calculating IOU/IOS based match for given ObjectPredictions
code: def _has_match(
      self, pred1: ObjectPrediction, pred2: ObjectPrediction
  ) -> bool:
      threshold_condition = (
          self.calculate_match(pred1, pred2) > self.match_threshold
      )
      category_condition = (
          self.has_same_category_id(pred1, pred2) or self.class_agnostic
      )
      return threshold_condition and category_condition
  
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 2 for calling the PostprocessPredictions obj's underlying member method code with example usage: obj._has_match(pred1, pred2) and returns: unknown