def reslice(in_file, new_zooms=None, order=3, out_file=''):
    """
    Performs regridding of an image to set isotropic voxel sizes using dipy.
    """
    import os
    import nibabel as nib
    from neuro_pypes.preproc import reslice_img
    from neuro_pypes.utils import rename
    img = reslice_img(nib.load(in_file), new_zooms=new_zooms, order=order)
    if not out_file:
        out_file = rename(in_file, '_resliced')
    img.to_filename(out_file)
    return os.path.abspath(out_file)
