How to use huggingface HF trainer train with custom collate function?

I’m slightly puzzled/curious, why do we have collate_fn option if preprocess + map does everything we need it seems (later is even lazy already!)?