What is the official way to use miniImagenet in Pytorch?

I wanted to make sure I was using the best and standard way to use miniImagent for pytorch. Is this the recommended way:


related:

The original paper with dataset does not make any specific recommendation: https://proceedings.neurips.cc/paper/2016/file/90e1357833654983612fb05e3ec9148c-Paper.pdf