code: def test_3d_gn_reg_shape(self):
      x = self.get_3d_input()
      gn_layer = GNLayer(
          4, regularizer=regularizers.l2_regularizer(0.5)
      )
      out_gn = gn_layer(x)
      test_gn = gn_layer(x)
      print(gn_layer)
  
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
  
          out = sess.run(out_gn)
          x_shape = tuple(x.shape.as_list())
          self.assertAllClose(x_shape, out.shape)
          # self.assertAllClose(np.zeros(x_shape), out)
  
          out = sess.run(test_gn)
          self.assertAllClose(x_shape, out.shape)
  
file_path: NiftyNet/tests/gn_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from tensorflow.contrib.layers.python.layers import regularizers
  from niftynet.layer.gn import GNLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 4 for calling the GNTest obj's underlying member method code with example usage: obj.test_3d_gn_reg_shape() without return types