code: def test_2d_shape(self):
      input_shape = (2, 16, 16, 1)
      x = tf.ones(input_shape)
  
      densenet_instance = INetDense()
      out = densenet_instance(x, x, is_training=True)
      print(densenet_instance)
  
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          out = sess.run(out)
          self.assertAllClose((2, 16, 16, 2), out.shape)
  
file_path: NiftyNet/tests/interventional_dense_net_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.network.interventional_dense_net import INetDense
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 4 for calling the INetDenseTest obj's underlying member method code with example usage: obj.test_2d_shape() without return types