code: def show_images_diff(original_img, adversarial_img):
      original_img = np.array(Image.open(original_img))
      adversarial_img = np.array(Image.open(adversarial_img))
  
      plt.figure()
  
      original_img = original_img / 255.0
      adversarial_img = adversarial_img / 255.0
  
      plt.subplot(1, 3, 1)
      plt.title("Original Image")
      plt.imshow(original_img)
      plt.axis("off")
  
      plt.subplot(1, 3, 2)
      plt.title("Adversarial Image")
      plt.imshow(adversarial_img)
      plt.axis("off")
  
      plt.subplot(1, 3, 3)
      plt.title("Difference")
      difference = adversarial_img - original_img
      # (-1,1)  -> (0,1)
      # 灰色打底 容易看出区别
      difference = (
          old_div(difference, abs(difference).max()) / 2.0 + 0.5
      )
      # print(difference)
      plt.imshow(difference)
      plt.axis("off")
  
      plt.show()
  
file_path: AdvBox/advbox_tools.py
imports: from __future__ import print_function
  from __future__ import division
  from past.utils import old_div
  import sys
  import logging
  from io import BytesIO
  from PIL import Image, ImageOps
  import numpy
  import time
  import requests
  from graphpipe import remote
  from adversarialbox.adversary import Adversary
  from adversarialbox.attacks.localsearch import LocalSearchAttack
  from adversarialbox.models.graphpipeBlackBox import graphpipeBlackBoxModel_onnx
  from adversarialbox.models.graphpipeBlackBox import graphpipeBlackBoxModel
  from optparse import OptionParser
  import matplotlib
  import matplotlib.pyplot
label_desc: Use image node_id 1 for calling a global function with example usage: show_images_diff(original_img, adversarial_img) without return types