You could try something as below:
import torch, torch.utils.data as data
x = torch.randn(3,25,25)
N = 10
ds = data.TensorDataset(x.unsqueeze(0).repeat(N,1,1,1))
for item in ds:
    img = item[0]
    print(img.shape)