class_docstr: Test for niftynet.layer.subpixel.SubPixelLayer.
  Mostly adapted from convolution_test.py
code: def _test_subpixel_output_shape(
      self, input_data, param_dict, output_shape
  ):
      layer = SubPixelLayer(**param_dict)
      output_data = layer(
          lr_image=input_data, is_training=True, keep_prob=1.0
      )
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          output_value = sess.run(output_data)
          self.assertAllClose(output_shape, output_value.shape)
  
file_path: NiftyNet/tests/subpixel_test.py
imports: from __future__ import division, absolute_import, print_function
  import functools
  import numpy
  import tensorflow
  from niftynet.layer.subpixel import SubPixelLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 4 for calling the SubPixelTest obj's underlying member method code with example usage: obj._test_subpixel_output_shape(input_data, param_dict, output_shape) without return types