code: def jaccard_overlap(sample_bbox, object_bbox):
      if (
          sample_bbox[0] >= object_bbox[2]
          or sample_bbox[2] <= object_bbox[0]
          or sample_bbox[1] >= object_bbox[3]
          or sample_bbox[3] <= object_bbox[1]
      ):
          return 0
      intersect_xmin = max(sample_bbox[0], object_bbox[0])
      intersect_ymin = max(sample_bbox[1], object_bbox[1])
      intersect_xmax = min(sample_bbox[2], object_bbox[2])
      intersect_ymax = min(sample_bbox[3], object_bbox[3])
      intersect_size = (intersect_xmax - intersect_xmin) * (
          intersect_ymax - intersect_ymin
      )
      sample_bbox_size = bbox_area(sample_bbox)
      object_bbox_size = bbox_area(object_bbox)
      overlap = intersect_size / (
          sample_bbox_size + object_bbox_size - intersect_size
      )
      return overlap
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import random
  import math
  import cv2
label_desc: Use image node_id 10 for calling a global function with example usage: jaccard_overlap(sample_bbox, object_bbox) and returns: overlap, int