code: def test_error_raised_extra_preprocessing_layer(self):
      with self.assertRaisesRegex(ValueError, "sequence length"):
          encoding_network.EncodingNetwork(
              input_tensor_spec=tensor_spec.TensorSpec([5], tf.float32),
              preprocessing_layers=[
                  tf.keras.layers.Lambda(lambda x: x),
                  tf.keras.layers.Lambda(lambda x: x),
              ],
              preprocessing_combiner=None,
              fc_layer_params=(2,),
          )
  
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 9 for calling the EncodingNetworkTest obj's underlying member method code with example usage: obj.test_error_raised_extra_preprocessing_layer() without return types