XArray has a feature to nicely show dataccube layout when used in jupyter:
The python client can do something similar.
In specific cases, it may be needed to ask the backend to determine dimensionality (that may need to be implemented via an output format).
The use case here is to simplify debugging, and help users to better understand the datacube concepts.