from typing import Dict
from typing import Hashable
from typing import List


def _switch_keys_and_values(
    key_value: Dict[Hashable, int]
) -> Dict[int, List[Hashable]]:
    """
    Returns dictionary with switched key-value arguments
    where new values (old keys) stored in the list.
    """
    value_key = {}
    for key, value in key_value.items():
        if value not in value_key:
            value_key[value] = [key]
        else:
            value_key[value].append(key)
    return value_key