Solved by zhl515 in post #3 
              
              
                ‘torch.utils’ is not a module, it’s a package. You can import the class-“Dataset” from  the module-“data” in the package-“torch.utils” 
from torch.utils.data import Dataset
class ISBIdata(Dataset):