def mscs_average(search_term, num_results, api_key, **kwargs):
    """Does a Microsoft Cognitive image search to get the average color of the
    top x results.
    Arguments
    search_term: str
        tearm to search for
    num_results: int
        number of results to average
    api_key: str
        Microsoft Cognitive API key
    max_threads: int
        max number of processes to spawn

    return {'name':search_term, 'red':r_avg, 'green':g_avg, 'blue':b_avg}
    or None
    """
    url_list = []
    result = {'name': search_term}
    MCIS = MicrosoftCognitiveImageSearch(api_key)
    url_list = MCIS.search(search_term, num_results)
    result.update(_image_search_average(url_list, **kwargs))
    return(result)