code: def test_2d_reduce_shape(self):
      input_shape = (2, 16, 16, 8)
      x = tf.ones(input_shape)
  
      highres_layer = HighResBlock(
          n_output_chns=4, kernels=(3, 3), with_res=True
      )
      out = highres_layer(x, is_training=True)
      print(highres_layer)
  
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          out = sess.run(out)
          self.assertAllClose((2, 16, 16, 4), out.shape)
  
file_path: NiftyNet/tests/highresblock_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from tensorflow.contrib.layers.python.layers import regularizers
  from niftynet.network.highres3dnet import HighResBlock
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 9 for calling the HighResBlockTest obj's underlying member method code with example usage: obj.test_2d_reduce_shape() without return types