Very often, arrays are squeezed with np.squeeze(). In the documentation, it says
np.squeeze()
Remove single-dimensional entries from the shape of a.
This helps you get rid of useless one dimension arrays like using [7,8,9] instead of [[[7,8,9]]] or [[1,2,3],[4,5,6]] instead of [[[[1,2,3],[4,5,6]]]]. Check this link from tutorials point for example.
[7,8,9]
[[[7,8,9]]]
[[1,2,3],[4,5,6]]
[[[[1,2,3],[4,5,6]]]]