code: def test_conv_raise_error(self):
      input_spec = tensor_spec.TensorSpec((32, 3), tf.float32)
      with self.assertRaises(ValueError):
          _ = encoding_network.EncodingNetwork(
              input_spec,
              conv_layer_params=((16, 2, 1), (15, 2, 1)),
              fc_layer_params=(10, 5, 2),
              activation_fn=tf.keras.activations.tanh,
              conv_type="3d",
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tf_agents.networks import encoding_network
  from tf_agents.specs import tensor_spec
  from tf_agents.utils import test_utils
label_desc: Use image node_id 4 for calling the EncodingNetworkTest obj's underlying member method code with example usage: obj.test_conv_raise_error() without return types