code: def _test_correctness(
      self, input, grid, interpolation, boundary, expected_value
  ):
      resampler = ResamplerOptionalNiftyRegLayer(
          interpolation=interpolation, boundary=boundary
      )
      out = resampler(input, grid)
  
      for use_gpu in self._get_devs():
          with self.cached_session(use_gpu=use_gpu) as sess:
              out_value = sess.run(out)
              self.assertAllClose(expected_value, out_value)
  
imports: from __future__ import absolute_import, print_function, division
  import numpy
  import tensorflow
  import tensorflow.test
  from niftynet.contrib.layer.resampler_optional_niftyreg import ResamplerOptionalNiftyRegLayer
  from tests.niftynet_testcase import NiftyNetTestCase
  import niftynet.contrib.layer.resampler_optional_niftyreg
label_desc: Use image node_id 5 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