code: def test_combined(self):
      expected = [
          [[[[1], [-1]], [[3], [-2]]], [[[5], [-3]], [[7], [-4]]]],
          [
              [[[9.5], [-5]], [[11.5], [-6]]],
              [[[13.5], [-7]], [[15.5], [-8]]],
          ],
      ]
      affine_grid = AffineGridWarperLayer(
          source_shape=(2, 2, 3), output_shape=(2, 2, 2)
      )
      test_grid = affine_grid(
          tf.constant(
              [
                  [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0],
                  [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0.5],
              ],
              dtype=tf.float32,
          )
      )
      self._test_correctness(
          inputs=get_3d_input1(),
          grid=test_grid,
          interpolation="idw",
          boundary="replicate",
          expected_value=expected,
      )
  
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 2 for calling the ResamplerGridWarperTest obj's underlying member method code with example usage: obj.test_combined() without return types