def METHOD_NAME(urls, aggFunc, uKey=None):
    """
    Perform parallel DBS calls for given set of urls and apply given aggregation
    function to the results.
    :param urls: list of DBS urls to call
    :param aggFunc: aggregation function
    :param uKey: url parameter to use for final dictionary
    :return: dictionary of resuls where keys are urls and values are obtained results
    """
    data = multi_getdata(urls, ckey(), cert())
    rdict = {}
    for row in data:
        url = row['url']
        code = int(row.get('code', 200))
        error = row.get('error')
        if code != 200:
            msg = f"Fail to query {url}. Error: {code} {error}"
            raise RuntimeError(msg)
        if uKey:
            key = urlParams(url).get(uKey)
        else:
            key = url
        data = row.get('data', [])
        res = json.loads(data)
        if aggFunc:
            rdict[key] = aggFunc(res)
        else:
            rdict[key] = res
    return rdict