code: def meet_emit_constraint(src_bbox, sample_bbox):
      center_x = (src_bbox[2] + src_bbox[0]) / 2
      center_y = (src_bbox[3] + src_bbox[1]) / 2
      if (
          center_x >= sample_bbox[0]
          and center_x <= sample_bbox[2]
          and center_y >= sample_bbox[1]
          and center_y <= sample_bbox[3]
      ):
          return True
      return False
  
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 1 for calling a global function with example usage: meet_emit_constraint(src_bbox, sample_bbox) and returns: False, True