<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_dimensions(self):
 """Get the dimensions from underlying data set."""

        return FrozenOrderedDict((k, len(v)) for k, v in self.ds.dimensions.items())