code: def shrink_image(fname):
      print("[info] Shrinking the image at", fname)
      SIZE = 400, 300
      try:
          im = Image.open(fname)
          im.thumbnail(SIZE, Image.ANTIALIAS)
          im.save(fname, "PNG")
      except IOError:
          print("[error] Cannot create thumbnail for", fname)
  
imports: import asyncio
  import os
  from pathlib import Path
  import sys
  from const import EXAMPLE_GLOB, HTML_DIR, LOCAL_IMAGE_DIR
label_desc: Use image node_id 1 for calling a global function with example usage: shrink_image(fname) without return types