code: def validate_point_inside_bounds(x, y, imWidth, imHeight):
      if x < 0 or x > imWidth:
          raise Exception(
              "X value (%s) not valid. Image dimensions: (%s,%s)"
              % (xmin, imWidth, imHeight)
          )
      if y < 0 or y > imHeight:
          raise Exception(
              "Y value (%s)  not valid. Image dimensions: (%s,%s) Sample: %s Line:%s"
              % (ymin, imWidth, imHeight)
          )
  
imports: import json
  import sys
  import zipfile
  import re
  import sys
  import os
  import codecs
  import traceback
  import numpy
  from utils import order_points_clockwise
label_desc: Use image node_id 9 for calling a global function with example usage: validate_point_inside_bounds(x, y, imWidth, imHeight) without return types