code: def test_global_pooling_repr(self):
      layer = layers.GlobalPooling("max")
      self.assertEqual(
          "GlobalPooling('max', name='global-pooling-1')", str(layer)
      )
  
      layer = layers.GlobalPooling(lambda x: x)
      self.assertRegexpMatches(
          str(layer),
          r"GlobalPooling\(<function .+>, name='global-pooling-2'\)",
      )
  
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 7 for calling the GlobalPoolingLayersTestCase obj's underlying member method code with example usage: obj.test_global_pooling_repr() without return types