so as ptrblck said the collate_fn is your callable/function that processes the batch you want to return from your dataloader. e.g.
    def collate_fn(batch):
        print(type(batch))
        print(len(batch))

in my case of batch_size=4 will return a list of size four. Lets check it:
<class 'list'>
4