<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def symmetrize_image(image):
 """ Use registration and reflection to make an image symmetric ANTsR function: N/A Arguments --------- image : ANTsImage image to make symmetric Returns ------- ANTsImage Example ------- """

    imager = reflect_image(image, axis=0)
    imageavg = imager * 0.5 + image
    for i in range(5):
        w1 = registration(imageavg, image, type_of_transform='SyN')
        w2 = registration(imageavg, imager, type_of_transform='SyN')
        
        xavg = w1['warpedmovout']*0.5 + w2['warpedmovout']*0.5
        nada1 = apply_transforms(image, image, w1['fwdtransforms'], compose=w1['fwdtransforms'][0])
        nada2 = apply_transforms(image, image, w2['fwdtransforms'], compose=w2['fwdtransforms'][0])

        wavg = (iio.image_read(nada1) + iio.image_read(nada2)) * (-0.5)
        wavgfn = mktemp(suffix='.nii.gz')
        iio.image_write(wavg, wavgfn)
        xavg = apply_transforms(image, imageavg, wavgfn)

    return xavg