How to sample a dataset

Hello,

I was reading the documentation Load
I see there is a way to grab splits, but is there a way to sample lets say 2k images (or some sample size) from a split without downloading the whole dataset?