I ran the code you mentioned. It throws the following error.
TypeError                                 Traceback (most recent call last)
<ipython-input-5-0f4eda8f5dd5> in <module>
----> 1 img = TF.rotate(img, 10)

/usr/local/lib/python3.6/dist-packages/torchvision/transforms/functional.py in rotate(img, angle, resample, expand, center, fill)
    727         fill = tuple([fill] * 3)
    728 
--> 729     return img.rotate(angle, resample, expand, center, fillcolor=fill)
    730 
    731 

TypeError: rotate() got an unexpected keyword argument 'fillcolor'