def get_keys(dictionary: dict, value):
    """
    get_keys() collects all the keys that share a value

    Syntax:
    get_keys(dictionary, value)

    Example usage:

    from readyCode package import get_keys

    d = {"Alice": 45, "Bob": 25, "Charlie": 45, "Doug": 15, "Ellie": 75}

    keys_with_45 = get_keys(d, 45)
    print(keys_with_45)  # Prints ["Alice", "Charlie"]

    Possible errors:
    If the given iterable is not a dictionary or 2D list, it will raise an error.
    """
    dictionary = dict(dictionary)
    if type(dictionary) != dict:
        exit("Error: not given a dictionary")
    return [key for key in dictionary if dictionary[key] == value]