code: def test_2d_shape(self):
      input_shape = (2, 57, 57, 1)
      x = tf.ones(input_shape)
  
      deepmedic_instance = DeepMedic(num_classes=160)
      out = deepmedic_instance(x, is_training=True)
  
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          out = sess.run(out)
          self.assertAllClose((2, 9, 9, 160), out.shape)
  
file_path: NiftyNet/tests/deepmedic_test.py
imports: from __future__ import absolute_import, print_function
  import unittest
  import os
  import tensorflow
  from tensorflow.contrib.layers.python.layers import regularizers
  from niftynet.network.deepmedic import DeepMedic
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 4 for calling the DeepMedicTest obj's underlying member method code with example usage: obj.test_2d_shape() without return types