code: def _find_in_image_avg_diff(cls, find_image, in_image):
      res = cv2.matchTemplate(in_image, find_image, cv2.TM_SQDIFF)
      min_val, max_val, min_loc, max_loc = cv2.minMaxLoc(res)
  
      top_left = min_loc
      bottom_right = (
          top_left[0] + find_image.shape[1],
          top_left[1] + find_image.shape[0],
      )
      image_found = in_image[
          top_left[1] : bottom_right[1],
          top_left[0] : bottom_right[0],
          :,
      ]
      diff = np.abs(
          image_found.astype(np.float32) - find_image.astype(np.float32)
      )
      return np.average(diff)
  
imports: from __future__ import print_function, division, absolute_import
  import sys
  import os
  import numpy
  import cv2
  import imageio
  import imgaug
  from imgaug import augmenters
  from imgaug import random
  from imgaug.testutils import reseed, TemporaryDirectory
  import imgaug.augmenters.debug
label_desc: Use image node_id 1 for calling the Test_draw_debug_image obj's underlying member method code with example usage: obj._find_in_image_avg_diff(cls, find_image, in_image) and returns: np