<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _dimensions_to_values(dimensions):
 """ Replace dimensions specs with their `dimension` values, and ignore those without """

        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