code: def get_3d_input1(self):
      return tf.expand_dims(
          tf.constant(
              [
                  [[[1, 2, -1], [3, 4, -2]], [[5, 6, -3], [7, 8, -4]]],
                  [
                      [[9, 10, -5], [11, 12, -6]],
                      [[13, 14, -7], [15, 16, -8]],
                  ],
              ],
              dtype=tf.float32,
          ),
          4,
      )
  
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 1 for calling the ResamplerTest obj's underlying member method code with example usage: obj.get_3d_input1() and returns: tf