def generateDataLoader(dataset, batch_size, shuffle=False, num_workers=16, pin_memory=False, drop_last=True):
    sampler = RandomSampler(dataset)
    dataLoader = torch.utils.data.DataLoader(dataset=dataset, sampler=sampler, batch_size=batch_size, shuffle=shuffle, num_workers=num_workers)
    return dataLoader
def generateDataLoader(dataset, batch_size, shuffle=False, num_workers=16, pin_memory=False, drop_last=True):
    sampler = RandomSampler(dataset)
    dataLoader = torch.utils.data.DataLoader(dataset=dataset, sampler=sampler, batch_size=batch_size, shuffle=shuffle, num_workers=num_workers)
    return dataLoader