<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def resample_single_nifti(input_nifti):
 """ Resample a gantry tilted image in place """

    # read the input image
    input_image = nibabel.load(input_nifti)
    output_image = resample_nifti_images([input_image])
    output_image.to_filename(input_nifti)