code: def load_image(path, size):
      ret = PIL.Image.open(path)
      ret = ret.resize((size, size))
      ret = np.asarray(ret).astype(np.float32)
      if ret.ndim == 2:
          # Convert gray scale image to color channels.
          ret.resize((size, size, 1))
          ret = np.repeat(ret, 3, axis=-1)
      return ret
  
file_path: innvestigate/examples/utils/__init__.py
imports: from __future__ import annotations
  import os
  import shutil
  import urllib
  import matplotlib.pyplot
  import numpy
  import PIL.Image
label_desc: Use image node_id 2 for calling a global function with example usage: load_image(path, size) and returns: ret