<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_processed_hotkeys(hotkeys=None):
 """ Process passed dict with key combinations or the HOTKEYS dict from settings. """

    hotkeys = hotkeys or ks_settings.HOTKEYS
    processed_hotkeys = AutoVivification()
    if not hotkeys:
        return processed_hotkeys

    for combination in hotkeys:
        key_codes = get_key_codes(combination['keys'])
        if len(key_codes) == 1:
            processed_hotkeys[key_codes[0]] = get_combination_action(combination)
        elif len(key_codes) == 2:
            processed_hotkeys[key_codes[0]][key_codes[1]] = get_combination_action(combination)
        elif len(key_codes) == 3:
            processed_hotkeys[key_codes[0]][key_codes[1]][key_codes[2]] = get_combination_action(combination)
        # TODO: make dynamic vivification

    return processed_hotkeys