Are you able to run these lines of code:
import torchvision
import torchvision.datasets as datasets

If so, the error might come from the COCODataset, although I don’t see any obvious reasons for this error.