def norm_int_dict(int_dict):
    """Normalizes values in the given dict with int values.

    Parameters
    ----------
    int_dict : list
        A dict object mapping each key to an int value.

    Returns
    -------
    dict
        A dict where each key is mapped to its relative part in the sum of
        all dict values.

    Example
    -------
    >>> dict_obj = {'a': 3, 'b': 5, 'c': 2}
    >>> result = norm_int_dict(dict_obj)
    >>> print(sorted(result.items()))
    [('a', 0.3), ('b', 0.5), ('c', 0.2)]
    """
    norm_dict = int_dict.copy()
    val_sum = sum(norm_dict.values())
    for key in norm_dict:
        norm_dict[key] = norm_dict[key] / val_sum
    return norm_dict