code: def thumbnail(directory, filename):
      try:
          name, extension = os.path.splitext(filename)
          thumb = pyvips.Image.thumbnail(f"{directory}/{filename}", 128)
          thumb.write_to_file(f"{directory}/tn_{name}.jpg")
      except pyvips.Error:
          # ignore failures due to eg. not an image
          pass
  
imports: import os
  import multiprocessing
  import sys
  import pyvips
label_desc: Use image node_id 1 for calling a global function with example usage: thumbnail(directory, filename) without return types