I have tried to update torchvision by using the command line:
conda install torchvision -c soumith
then I got this :
Solving environment: done
# All requested packages already installed.

so i used the following commands in python shell :
from torchvision import transforms
dir(transforms)

then i got the list of function and found RandomSizedCroped