def getTypedValue(data_type, value):

    if data_type == 'boolean':
        return bool(value)
    elif data_type == 'integer':
        return int(value)
    elif data_type == 'float':
        return float(value)
    elif data_type == 'string':
        return str(value)
    else:
        return value # no type casting
Returns network group to which network role is associated
dataset/ETHPy150Open geopython/OWSLib/owslib/util.py/getTypedValue--crossover with--dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/extensions/network_manager/managers/nova_network.py/NovaNetworkManager70.get_network_group_for_role