code: def _get_cv2_resizer():
      try:
          import cv2
      except ImportError:
          return (None, ["OpenCV not found (install 'opencv-python')"])
  
      def resizer(pic, new_size):
          lx, ly = int(new_size[0]), int(new_size[1])
          if lx > pic.shape[1] or ly > pic.shape[0]:
              # For upsizing use linear for good quality & decent speed
              interpolation = cv2.INTER_LINEAR
          else:
              # For dowsizing use area to prevent aliasing
              interpolation = cv2.INTER_AREA
          return cv2.resize(
              +pic.astype("uint8"),
              (lx, ly),
              interpolation=interpolation,
          )
  
      return (resizer, [])
  
imports: import numbers
label_desc: Use image node_id 1 for calling a global function with example usage: _get_cv2_resizer() and returns: resizer,  list, cv2, None,  list