code: def get_cam_image(self, activations, grads):
      weights = self.get_cam_weights(grads)
      weighted_activations = weights * activations
      cam = weighted_activations.sum(axis=1)
  
      return cam
  
imports: import cv2
  import numpy
label_desc: Use image node_id 4 for calling the GradCAM obj's underlying member method code with example usage: obj.get_cam_image(activations, grads) and returns: cam