Probably you don’t have torchvision version 0.2.0 (conda version is still 0.1.9).
Since FashionMNIST is just a sub-class of MNIST, you can copy that part of the code and import it yourself while you wait for the official update.