from typing import Union
from typing import Mapping
from typing import Iterable
from typing import Tuple
from typing import Any


def update_and_return_dict(
    dict_to_update: dict, update_values: Union[Mapping, Iterable[Tuple[Any, Any]]]
) -> dict:
    """Update a dictionary and return the ref to the dictionary that was updated.

    Args:
        dict_to_update (dict): the dict to update
        update_values (Union[Mapping, Iterable[Tuple[Any, Any]]]): the values to update the dict
            with

    Returns:
        dict: the dict that was just updated.
    """
    dict_to_update.update(update_values)
    return dict_to_update