code: def run_test(self, is_3d, type_str, expected_shape):
      if is_3d:
          x = self.get_3d_input()
      else:
          x = self.get_2d_input()
      activation_layer = ActiLayer(func=type_str)
      out_acti = activation_layer(x)
      print(activation_layer)
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          out = sess.run(out_acti)
          self.assertAllClose(out.shape, expected_shape)
  
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from tensorflow.contrib.layers.python.layers import regularizers
  from niftynet.layer.activation import ActiLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 3 for calling the ActivationTest obj's underlying member method code with example usage: obj.run_test(is_3d, type_str, expected_shape) without return types