code: def test_ill_params(self):
      params = {
          "n_output_chns": 16,
          "kernel_size": 3,
          "upsample_stride": 2,
          "acti_func": "relu",
      }
      expected_shape = (2, 32, 32, 32, 16)
      with self.assertRaisesRegexp(AssertionError, ""):
          self._test_nd_output_shape(3, params, expected_shape)
  
      params = {
          "n_output_chns": 2,
          "kernel_size": 3,
          "upsample_stride": 2,
          "acti_func": "relu",
          "type_string": "foo",
      }
      expected_shape = (2, 32, 32, 32, 16)
      with self.assertRaisesRegexp(ValueError, ""):
          self._test_nd_output_shape(3, params, expected_shape)
  
file_path: NiftyNet/tests/upsample_res_block_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.layer.upsample_res_block import UpBlock
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 6 for calling the UpsampleResBlockTest obj's underlying member method code with example usage: obj.test_ill_params() without return types