class_docstr: Interface for simple dictionary-based dataset format. The dictionary
  keys correspond to the column (i.e. dimension) names and the values
  are collections representing the values in that column.
class_docstr_tok: ["Interface","for","simple","dictionary-based","dataset","format",".","The","dictionary","keys","correspond","to","the","column","(","i.e",".","dimension",")","names","and","the","values","are","collections","representing","the","values","in","that","column","."]
code: def values(
      cls,
      dataset,
      dim,
      expanded=True,
      flat=True,
      compute=True,
      keep_index=False,
  ):
      dim = dataset.get_dimension(dim, strict=True).name
      values = dataset.data.get(dim)
      if isscalar(values):
          if not expanded:
              return np.array([values])
          values = np.full(
              len(dataset), values, dtype=np.array(values).dtype
          )
      else:
          if not expanded:
              return util.unique_array(values)
          values = np.asarray(values)
      return values
  
imports: from collections import OrderedDict, defaultdict
  import numpy
  from ..None import util
  from ..dimension import dimension_name
  from ..element import Element
  from ..ndmapping import NdMapping, item_check, sorted_context
  from ..util import isscalar
  from .interface import DataError, Interface
label_desc: Use image node_id 15 for calling the DictInterface obj's underlying member method code with example usage: obj.values(cls, dataset, dim, expanded, flat, compute, keep_index) and returns: values, np, util