def get_decipher_values(values, text_key):
    """ Converts a Decipher values collection into a Quantipy values
    collection.

    Parameters
    ----------
    values : list
        The values object from a block of Decipher metadata

    Returns
    -------
    values : list
        The Quantipy values object 
    """

    values = [
        {
            'value': int(v['value']),
            'text': {text_key: v['title']}
        }
        for v in values
    ]

    return values