code: def _get_PIL_resizer():
      try:
          from PIL import Image
      except ImportError:
          return (None, ["PIL not found (install 'Pillow')"])
  
      import numpy as np
  
      def resizer(pic, new_size):
          new_size = list(map(int, new_size))[::-1]
          # shape = pic.shape
          # if len(shape) == 3:
          #     newshape = (new_size[0], new_size[1], shape[2])
          # else:
          #     newshape = (new_size[0], new_size[1])
  
          pil_img = Image.fromarray(pic)
          resized_pil = pil_img.resize(new_size[::-1], Image.LANCZOS)
          # arr = np.fromstring(resized_pil.tostring(), dtype="uint8")
          # arr.reshape(newshape)
          return np.array(resized_pil)
  
      return (resizer, [])
  
imports: import numbers
label_desc: Use image node_id 2 for calling a global function with example usage: _get_PIL_resizer() and returns: resizer,  list, np, None,  list