code: def rotated_iou_similarity(box1, box2, eps=1e-9, func=""):
      """Calculate iou of box1 and box2
  
      Args:
          box1 (Tensor): box with the shape [N, M1, 5]
          box2 (Tensor): box with the shape [N, M2, 5]
  
      Return:
          iou (Tensor): iou between box1 and box2 with the shape [N, M1, M2]
      """
      from ext_op import rbox_iou
  
      rotated_ious = []
      for b1, b2 in zip(box1, box2):
          rotated_ious.append(rbox_iou(b1, b2))
  
      return paddle.stack(rotated_ious, axis=0)
  
file_path: PaddleDetection/ppdet/modeling/rbox_utils.py
imports: import math
  import paddle
  import numpy
  import cv2
label_desc: Use image node_id 12 for calling a global function with example usage: rotated_iou_similarity(box1, box2, eps, func) and returns: paddle