code: def makeDiffImage(im1, im2):
      """Return image array showing the differences between im1 and im2.
  
      Handles images of different shape. Alpha channels are not compared.
      """
      ds = im1.shape
      es = im2.shape
  
      diff = np.empty(
          (max(ds[0], es[0]), max(ds[1], es[1]), 4), dtype=int
      )
      diff[..., :3] = 128
      diff[..., 3] = 255
      diff[: ds[0], : ds[1], : min(ds[2], 3)] += im1[..., :3]
      diff[: es[0], : es[1], : min(es[2], 3)] -= im2[..., :3]
      diff = np.clip(diff, 0, 255).astype(np.ubyte)
      return diff
  
imports: import inspect
  import os
  import sys
  import time
  from pathlib import Path
  import numpy
  from pyqtgraph import GraphicsLayoutWidget, ImageItem, TextItem
  from pyqtgraph import functions
  from pyqtgraph.Qt import QtCore, QtGui, QtWidgets
label_desc: Use image node_id 7 for calling a global function with example usage: makeDiffImage(im1, im2) and returns: diff