I think the error is that you are passing the class MyDataSet to your DataLoader instead of an instance of MyDataSet.
Could you try to instantiate the Dataset first, then pass it to your DataLoader:
dataset = MyDataSet(PATH)
dataloader = torch.utils.data.DataLoader(dataset=dataset, batch_size=batch_size)