Create a tensor up to 4 dimensions. The tensor size will be sz1 x sz2 x sx3 x sz4. For more dimensions, see this more general method.