def dict_update(dict_item: dict, key: str, value) -> dict:
    """
    Updating a key,value pair to a dictionary then return it. Remember keys are unique so if you not pass the exact key
    you wil generate a new one.

    :param dict_item: A dict object to be changed.
    :param key: Key to be changed.
    :param value: Value to be inserted into key.
    :return dict: The changed dict object.
    """
    dict_item.update({key: value})
    return dict_item