ConcatDataset is intended for cases where you want to have the same thing per item as in the individual datas ets. You could either modify the individual data sets or go through data_concat.datasets (a list of datasets).
If you need to do operations across datasets, you’re better off creating a custom wrapper rather than using ConcatDataset.
Best regards
Thomas