code: def _dimensions_to_values(dimensions):
          
          values = []
          for dimension in dimensions:
              if isinstance(dimension, dict):
                  if 'extractionFn' in dimension:
                      values.append(dimension)
                  elif 'dimension' in dimension:
                      values.append(dimension['dimension'])
              else:
                  values.append(dimension)
  
          return values
docs: Replace dimensions specs with their `dimension`
          values, and ignore those without