code: def _pprint(self, element, dim_label, vals):
          
  
          if vals.dtype.kind not in 'SU':
              dim = element.gridded.get_dimension(dim_label)
              return [dim.pprint_value(v) for v in vals]
  
          return vals
docs: Helper function to convert values to corresponding dimension type.