code: def is_inside(center_point, corner_point):
      """
      Find if center_point inside the bbox(corner_point) or not.
      :param center_point: center point (x, y)
      :param corner_point: corner point ((x1,y1),(x2,y2))
      :return:
      """
      x_flag = False
      y_flag = False
      if (center_point[0] >= corner_point[0][0]) and (
          center_point[0] <= corner_point[1][0]
      ):
          x_flag = True
      if (center_point[1] >= corner_point[0][1]) and (
          center_point[1] <= corner_point[1][1]
      ):
          y_flag = True
      if x_flag and y_flag:
          return True
      else:
          return False
  
imports: import os
  import re
  import cv2
  import glob
  import copy
  import math
  import pickle
  import numpy
  from shapely.geometry import Polygon, MultiPoint
label_desc: Use image node_id 8 for calling a global function with example usage: is_inside(center_point, corner_point) and returns: True, False