code: def checkOpenGrid(img, thumbnail_min):
      H, W = img.shape[:2]
      if max(H, W) <= thumbnail_min:
          return False
      else:
          return True
  
file_path: PaddleSeg/EISeg/eiseg/plugin/n2grid/grid.py
imports: import math
  import numpy
  from PIL import Image
label_desc: Use image node_id 1 for calling a global function with example usage: checkOpenGrid(img, thumbnail_min) and returns: False, True