code: def scale_cam_image(cam, target_size=None):
      result = []
      for img in cam:
          img = img - np.min(img)
          img = img / (1e-7 + np.max(img))
          if target_size is not None:
              img = cv2.resize(img, target_size)
          result.append(img)
      result = np.float32(result)
  
      return result
  
imports: import cv2
  import numpy
label_desc: Use image node_id 8 for calling the GradCAM obj's underlying member method code with example usage: obj.scale_cam_image(cam, target_size) and returns: result