code: def test_resampler_3d_multivariate_replicate_idw_correctness(self):
      test_grid = tf.constant(
          [
              [[0.25, 0.25, 0.25], [0.25, 0.75, 0.25]],
              [[0.75, 0.25, 0.25], [0.25, 0.25, 0.75]],
          ],
          dtype=tf.float32,
      )
      expected = [
          [[3.03804874, 103.03804016], [3.87344956, 103.87354279]],
          [[12.70884895, 112.70884705], [11.45574856, 111.45578003]],
      ]
      self._test_correctness(
          input=self.get_3d_input2(),
          grid=test_grid,
          interpolation="IDW",
          boundary="REPLICATE",
          expected_value=expected,
      )
  
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 6 for calling the ResamplerTest obj's underlying member method code with example usage: obj.test_resampler_3d_multivariate_replicate_idw_correctness() without return types