code: def test_3d_shape(self):
      input_shape = (2, 32, 32, 32, 1)
      x = tf.ones(input_shape)
  
      affinenet_instance = INetAffine()
      out = affinenet_instance(x, x, is_training=True)
      print(affinenet_instance)
  
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          out = sess.run(out)
          self.assertAllClose((2, 32, 32, 32, 3), out.shape)
  
file_path: NiftyNet/tests/interventional_affine_net_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.network.toynet import ToyNet
  from niftynet.network.interventional_affine_net import INetAffine
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling the INetAffineTest obj's underlying member method code with example usage: obj.test_3d_shape() without return types