def _one_item_list_condition_func(col_attr, value, condition_func):
    if value:
        return condition_func(col_attr, value[0])
    else:
        return None
The wrapper condition func to deal with one item data list.
dataset/ETHPy150Open openstack/compass-core/compass/db/api/utils.py/_one_item_list_condition_func