def METHOD_NAME(column_identifier):
    """
    returns a function that extracts the value for a column.
    """
    def extract_value(run_result):
        pos = None
        for i, column in enumerate(run_result.columns):
            if column.title == column_identifier:
                pos = i
                break
        if pos is None:
            sys.exit(f"CPU time missing for task {run_result.task_id}.")
        return util.to_decimal(run_result.values[pos])
    return extract_value