code: def _test_correctness(
      self, inputs, grid, interpolation, boundary, expected_value
  ):
      resampler = ResamplerLayer(
          interpolation=interpolation, boundary=boundary
      )
      out = resampler(inputs, grid)
      with self.cached_session() as sess:
          out_value = sess.run(out)
          self.assertAllClose(expected_value, out_value)
  
imports: from __future__ import absolute_import, print_function, division
  import base64
  import numpy
  import tensorflow
  from niftynet.layer.grid_warper import AffineGridWarperLayer
  from niftynet.layer.resampler import ResamplerLayer
  from tests.niftynet_testcase import NiftyNetTestCase
label_desc: Use image node_id 1 for calling the ResamplerGridWarperTest obj's underlying member method code with example usage: obj._test_correctness(inputs, grid, interpolation, boundary, expected_value) without return types