code: def image_loader(hashfunc, hash_size=8):
      def function(path):
          image = alpharemover(Image.open(path))
          return hashfunc(image)
  
      return function
  
file_path: imagehash/examples/hashimages.py
imports: from __future__ import absolute_import, division, print_function
  import sys
  import numpy
  from PIL import Image
  import imagehash
label_desc: Use image node_id 2 for calling a global function with example usage: image_loader(hashfunc, hash_size) and returns: function, hashfunc