def flatten_result(result):
    case_properties = result.pop('case_properties', None)
    for case_property in case_properties:
        key = case_property.get('key')
        value = case_property.get('value')
        if key and value:
            result[key] = value
    return result
Get VIPs collection optionally filtered by network or network role.
dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/es/case_search.py/flatten_result--crossover with--dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/extensions/network_manager/handlers/vip.py/ClusterVIPCollectionHandler.GET