code: def jaccard_overlap(pred, gt, is_bbox_normalized=False):
      """
      Calculate jaccard overlap ratio between two bounding box
      """
      if (
          pred[0] >= gt[2]
          or pred[2] <= gt[0]
          or pred[1] >= gt[3]
          or pred[3] <= gt[1]
      ):
          return 0.0
      inter_xmin = max(pred[0], gt[0])
      inter_ymin = max(pred[1], gt[1])
      inter_xmax = min(pred[2], gt[2])
      inter_ymax = min(pred[3], gt[3])
      inter_size = bbox_area(
          [inter_xmin, inter_ymin, inter_xmax, inter_ymax],
          is_bbox_normalized,
      )
      pred_size = bbox_area(pred, is_bbox_normalized)
      gt_size = bbox_area(gt, is_bbox_normalized)
      overlap = float(inter_size) / (pred_size + gt_size - inter_size)
      return overlap
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from __future__ import unicode_literals
  import os
  import sys
  import numpy
  import itertools
  import paddle
  from ppdet.modeling.rbox_utils import poly2rbox_np
  from ppdet.utils.logger import setup_logger
label_desc: Use image node_id 3 for calling a global function with example usage: jaccard_overlap(pred, gt, is_bbox_normalized) and returns: overlap, int