code: def test_2d_shape(self):
      input_shape = (2, 32, 32, 4)
      x = tf.ones(input_shape)
  
      scalenet_layer = ScaleNet(num_classes=5)
      out = scalenet_layer(x, is_training=True)
      print(scalenet_layer.num_trainable_params())
  
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          out = sess.run(out)
          self.assertAllClose((2, 32, 32, 5), out.shape)
  
file_path: NiftyNet/tests/scalenet_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.scalenet import ScaleNet
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 2 for calling the ScaleNetTest obj's underlying member method code with example usage: obj.test_2d_shape() without return types