Pad a tensor with random values

result = torch.randn(5, 5)
result[1:-1, 1:-1] = x