code: def test_visualize_saliency_with_losses_with_unkeepdims(model, data):
      losses = [(ActivationMaximization(model.layers[-1], 0), -1)]
      grads = visualize_saliency_with_losses(
          model.input, losses, data, keepdims=True
      )
      assert grads.shape == (28, 28, 3)
  
file_path: keras-vis/tests/vis/visualization/test_saliency.py
imports: import pytest
  import numpy
  import keras.backend
  from keras.layers import Input, Dense, Flatten
  from keras.models import Model
  from vis.losses import ActivationMaximization
  from vis.visualization.saliency import visualize_saliency, visualize_saliency_with_losses
label_desc: Use image node_id 6 for calling a global function with example usage: test_visualize_saliency_with_losses_with_unkeepdims(model, data) without return types