code: def reorient(in_file, newpath=None):
      
      out_file = fname_presuffix(in_file, suffix='_ras', newpath=newpath)
      nb.as_closest_canonical(nb.load(in_file)).to_filename(out_file)
      return out_file
docs: Reorient Nifti files to RAS