code: def in_contour(cont, point):
      x, y = point
      is_inner = (
          cv2.pointPolygonTest(cont, (int(x), int(y)), False) > 0.5
      )
      return is_inner
  
imports: import functools
  import operator
  import numpy
  import paddle
  from numpy.linalg import norm
  import cv2
label_desc: Use image node_id 7 for calling a global function with example usage: in_contour(cont, point) and returns: is_inner