code: def test_3d_dilating_shape(self):
      x = self.get_3d_input()
      with DilatedTensor(x, 4) as dilated:
          intermediate = dilated.tensor
      x = dilated.tensor
  
      with self.cached_session() as sess:
          out = sess.run(x)
          out_dilated = sess.run(intermediate)
          self.assertAllClose((2, 16, 16, 16, 8), out.shape)
          self.assertAllClose((128, 4, 4, 4, 8), out_dilated.shape)
  
file_path: NiftyNet/tests/dilatedcontext_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.layer.dilatedcontext import DilatedTensor
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 4 for calling the BNTest obj's underlying member method code with example usage: obj.test_3d_dilating_shape() without return types