def process_mid_survey_results_filter_users(mid_survey_results, user_keep_list):
    """
    Params:
      - mid_survey_results: return value from `get_mid_survey_results()` 
      - user_keep_list: a `list` of user codes that we want to keep
    """
    ret = {}
    for score_type in mid_survey_results:
        ret[score_type] = {}
        for code in mid_survey_results[score_type]:
            if code in user_keep_list:
                ret[score_type][code] = mid_survey_results[score_type][code]
    return ret