Rotated image distorted

I tried rotating image but the rotated images looks distorted. Why is the rotated image distorted?

import torchvision.transforms.functional as TF
image = TF.rotate(img, angle)

image

It will be great if you could give a complete executable example to debug in your question.
There are some missing pieces (how the image is read, angle = ?). Overall, it will help if you give full examples that can be executed readily.