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 _get_images(self, do_small=False):
      data_dir = osp.join(osp.dirname(__file__), "data")
      filename_temp = (
          "test_image_" + ("vsmall" if do_small else "large") + "_*.nii"
      )
  
      for test_img_path in glob(osp.join(data_dir, filename_temp)):
          yield nib.load(test_img_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 1 for calling the ResamplerTest obj's underlying member method code with example usage: obj._get_images(do_small) without return types