Using Custom Samplers for fastai Dataloaders

Hello Everyone, I was trying to use custom samplers with the fastai Dataloaders but it is not working. Does anyone know how to use samplers such as WeightedRandomSampler from PyTorch as a sampler to fastai dataloader? I also tried using the WeightedDL option provided but was getting errors and was confused about how to use them as it is not well documented.
Any help would be appreciated.