code: def test_conv_output_shape_func_exceptions(self):
      with self.assertRaises(ValueError):
          # Wrong stride value
          conv_output_shape(
              dimension_size=5,
              filter_size=5,
              padding="VALID",
              stride="not int",
          )
  
      with self.assertRaises(ValueError):
          # Wrong filter size value
          conv_output_shape(
              dimension_size=5,
              filter_size="not int",
              padding="SAME",
              stride=5,
          )
  
      with self.assertRaisesRegexp(
          ValueError, "unknown \S+ padding value"
      ):
          # Wrong padding value
          conv_output_shape(
              dimension_size=5,
              filter_size=5,
              padding=1.5,
              stride=5,
          )
  
imports: import random
  from itertools import product
  from collections import namedtuple
  import numpy
  import tensorflow
  from neupy import layers
  from neupy.utils import asfloat, shape_to_tuple
  from neupy.layers.convolutions import conv_output_shape, deconv_output_shape
  from neupy.exceptions import LayerConnectionError
  from base import BaseTestCase
label_desc: Use image node_id 8 for calling the ConvLayersTestCase obj's underlying member method code with example usage: obj.test_conv_output_shape_func_exceptions() without return types