code: def valid_boundary(x, with_score=True):
      num = len(x)
      if num < 8:
          return False
      if num % 2 == 0 and (not with_score):
          return True
      if num % 2 == 1 and with_score:
          return True
  
      return False
  
file_path: PaddleOCR/ppocr/utils/poly_nms.py
imports: import numpy
  from shapely.geometry import Polygon
label_desc: Use image node_id 4 for calling a global function with example usage: valid_boundary(x, with_score) and returns: False, False, True, True