class_docstr: Unit test for GPUImageResampling defined in python_wrapper.cpp
class_docstr_tok: ["Unit","test","for","GPUImageResampling","defined","in","python_wrapper.cpp"]
code: def _dump_image(dst_path, img):
      nib.save(nib.Nifti1Image(img, np.eye(4)), str(dst_path))
  
file_path: NiftyNet/niftynet/contrib/niftyreg_image_resampling/tests/test_resampler.py
imports: from glob import glob
  import math
  import os.path
  import nibabel
  import numpy
  import copy
  import tensorflow
  import tensorflow.test
  from niftynet.contrib.niftyreg_image_resampling.niftyreg_module_loader import get_niftyreg_module
label_desc: Use image node_id 2 for calling the ResamplerTest obj's underlying member method code with example usage: obj._dump_image(dst_path, img) without return types