code: def test_shape_interface(self):
      test_input = tf.zeros((2, 10, 10, 10, 3))
      test_coords = tf.zeros((3, 5, 5, 5, 3))
      # bad batch sizes
      with self.assertRaisesRegexp(ValueError, ""):
          out = ResamplerLayer()(test_input, test_coords)
  
      test_input = tf.zeros((2, 10, 10, 10, 3))
      test_coords = tf.zeros((5, 5, 5, 3))
      # bad batch sizes
      with self.assertRaisesRegexp(ValueError, ""):
          out = ResamplerLayer()(test_input, test_coords)
  
      test_input = tf.zeros((1, 10, 10, 3))
      test_coords = tf.zeros((1, 5, 5, 3))
      # bad n coordinates
      with self.assertRaisesRegexp(ValueError, ""):
          out = ResamplerLayer()(test_input, test_coords)
  
file_path: NiftyNet/tests/resampler_batch_test.py
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import tensorflow
  from niftynet.layer.resampler import ResamplerLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling the ResamplerTest obj's underlying member method code with example usage: obj.test_shape_interface() without return types