code: def run_test(self, param_dict, expected_shape, is_3d=True):
      if is_3d:
          x = get_3d_input()
      else:
          x = get_2d_input()
  
      upsample_layer = ResidualUpsampleLayer(**param_dict)
      resized = upsample_layer(x)
      print(upsample_layer)
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          out = sess.run(resized)
          self.assertAllClose(out.shape, expected_shape)
  
file_path: NiftyNet/tests/residual_upsample_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.layer.additive_upsample import ResidualUpsampleLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling the ResidualUpsampleTest obj's underlying member method code with example usage: obj.run_test(param_dict, expected_shape, is_3d) without return types