def METHOD_NAME(card_custom_field, custom_field):
    list_of_options = {x['id']: x for x in custom_field['options']}
    option = list_of_options[card_custom_field['idValue']]
    return option['value']['text']