Thanks, from there I also saw  one interesting line
if batch_sampler is None:
So if we set the batch_sampler=bs where bs is instance of the class BatchSampler we are OK?
So I guess if we do have batch_size greater than 1 for our DataLoader it is more common to use the BatchSampler?