code: def test_failed_pooling_connection(self):
      network = layers.join(
          layers.Relu(),
          layers.AveragePooling((2, 2)),
          layers.Reshape(),
      )
      error_message = (
          "Pooling layer expects an input with 4 "
          "dimensions, got 2 with shape \(\?, 10\)"
      )
      with self.assertRaisesRegexp(LayerConnectionError, error_message):
          layers.join(layers.Input(10), network)
  
imports: from collections import namedtuple
  import numpy
  import tensorflow
  from neupy import layers
  from neupy.utils import asfloat
  from neupy.exceptions import LayerConnectionError
  from neupy.layers.pooling import pooling_output_shape
  from base import BaseTestCase
label_desc: Use image node_id 11 for calling the PoolingLayersTestCase obj's underlying member method code with example usage: obj.test_failed_pooling_connection() without return types