code: def dimension_values(self, dimension, expanded=True, flat=True):
          
          val = self._cached_constants.get(dimension, None)
          if val:
              return np.array([val])
          else:
              raise Exception("Dimension %s not found in %s." %
                              (dimension, self.__class__.__name__))
docs: Return the values along the requested dimension.
  
          Args:
              dimension: The dimension to return values for
              expanded (bool, optional): Whether to expand values
                  Whether to return the expanded values, behavior depends
                  on the type of data:
                    * Columnar: If false returns unique values
                    * Geometry: If false returns scalar values per geometry
                    * Gridded: If false returns 1D coordinates
              flat (bool, optional): Whether to flatten array
  
          Returns:
              NumPy array of values along the requested dimension