code: def test_bad_int_shape(self):
      new_shape = 0
  
      with self.assertRaisesRegexp(tf.errors.InvalidArgumentError, ""):
          self.run_test(new_shape, (new_shape,) * 2, False)
  
      with self.assertRaisesRegexp(tf.errors.InvalidArgumentError, ""):
          self.run_test(new_shape, (new_shape,) * 3, True)
  
file_path: NiftyNet/tests/linear_resize_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.layer.linear_resize import LinearResizeLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 7 for calling the LinearResizeTest obj's underlying member method code with example usage: obj.test_bad_int_shape() without return types