This post was flagged by the community and is temporarily hidden.
Sorry, I am not sure I understood correctly. Yu want to subsample a set of images to obtain 50 out of 260 ?
If this is the case, you mway want to use nilearn.image.index_img
Additionally, you can generate random index sets to sample different random subsets.