def METHOD_NAME(self, indices):
    frm = 0
    for to, ds in zip(self.cumulative_sizes, self.datasets):
        real_size = len(ds)
        if getattr(ds, "supports_prefetch", False):
            ds.METHOD_NAME([(i - frm) % real_size for i in indices if frm <= i < to])
        frm = to