code: def test_global_pooling(self):
      x = asfloat(np.ones((2, 4, 5, 3)))
      expected_outputs = np.ones((2, 3))
  
      global_mena_pooling_layer = layers.GlobalPooling("avg")
      actual_output = self.eval(global_mena_pooling_layer.output(x))
  
      self.assertEqual(actual_output.shape, (2, 3))
      np.testing.assert_array_equal(expected_outputs, actual_output)
  
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 2 for calling the GlobalPoolingLayersTestCase obj's underlying member method code with example usage: obj.test_global_pooling() without return types