Since PyTorch seems to adopt lazy way of initializing workers, this means that the actual file opening has to happen inside of the getitem function of the Dataset wrapper.
https://discuss.pytorch.org/t/dataloader-when-num-worker-0-there-is-bug/25643/2