code: def _test_correctness(
      self, input, grid, interpolation, boundary, expected_value
  ):
      resampler = ResamplerLayer(
          interpolation=interpolation, boundary=boundary
      )
      out = resampler(input, grid)
      with self.cached_session() as sess:
          sess.run(tf.global_variables_initializer())
          out_value = sess.run(out)
          self.assertAllClose(expected_value, out_value)
  
file_path: NiftyNet/tests/spatial_transformer_test.py
imports: from __future__ import absolute_import, print_function
  import tensorflow
  from niftynet.layer.resampler import ResamplerLayer
  from niftynet.layer.spatial_transformer import ResampledFieldGridWarperLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 3 for calling the ResamplerTest obj's underlying member method code with example usage: obj._test_correctness(input, grid, interpolation, boundary, expected_value) without return types