code: def test_saliency_map_invalid_input_image(self):
      network = layers.join(
          layers.Input(10),
          layers.Relu(),
      )
      message = (
          "Input layer has to be 4 dimensions, but network expects "
          "2 dimensional input"
      )
      with self.assertRaisesRegexp(InvalidConnection, message):
          plots.saliency_map(network, self.image)
  
      message = (
          "Invalid image shape. Image expected to be 3D, got 2D image"
      )
      with self.assertRaisesRegexp(ValueError, message):
          plots.saliency_map(self.network, np.ones((28, 28)))
  
file_path: neupy/tests/plots/test_saliency_map.py
imports: import mock
  import numpy
  import matplotlib.pyplot
  from neupy import plots, layers, algorithms
  from neupy.exceptions import InvalidConnection
  from base import BaseTestCase
label_desc: Use image node_id 5 for calling the SaliencyMapTestCase obj's underlying member method code with example usage: obj.test_saliency_map_invalid_input_image() without return types