code: def is_overlap(object_bbox, sample_bbox):
      if (
          object_bbox[0] >= sample_bbox[2]
          or object_bbox[2] <= sample_bbox[0]
          or object_bbox[1] >= sample_bbox[3]
          or object_bbox[3] <= sample_bbox[1]
      ):
          return False
      else:
          return True
  
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 4 for calling a global function with example usage: is_overlap(object_bbox, sample_bbox) and returns: False, True