code: def reslice_image(itk_image, itk_ref, is_label=False):
      resample = sitk.ResampleImageFilter()
      resample.SetReferenceImage(itk_ref)
  
      if is_label:
          resample.SetInterpolator(sitk.sitkNearestNeighbor)
      else:
          resample.SetInterpolator(sitk.sitkBSpline)
  
      return resample.Execute(itk_image)
  
file_path: DLTK/data/IXI_HH/download_IXI_HH.py
imports: from __future__ import unicode_literals
  from __future__ import print_function
  from __future__ import division
  from __future__ import absolute_import
  from future.standard_library import install_aliases
  from urllib.request import FancyURLopener
  import os.path
  import tarfile
  import pandas
  import glob
  import SimpleITK
  import numpy
label_desc: Use image node_id 2 for calling a global function with example usage: reslice_image(itk_image, itk_ref, is_label) and returns: resample