code: def get_3d_input1():
      test_case = 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,
      )
      return tf.expand_dims(test_case, 4)
  
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 7 for calling a global function with example usage: get_3d_input1() and returns: tf