code: def get_2d_images(test_case):
      try:
          out = base64.decodebytes(test_case["data"])
      except AttributeError:
          out = base64.decodestring(test_case["data"])
      out = np.frombuffer(out, dtype=np.uint8)
      out = out.reshape(test_case["shape"])
      return out, out.shape
  
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 1 for calling a global function with example usage: get_2d_images(test_case) and returns: out,  out