def get_nested_dict_item(dic: dict, key_list: list):
    """
    Get a nested dictionary item.
    If key_list is empty, return dic itself.

    Args:
        dic (dict): dictionary of items
        key_list (list): list of keys

    Returns:
        dict: nested dictionary

    .. code-block:: python
        :linenos:

        myDict = Dict(aa=Dict(x1={'dda':34},y1='Y',z='10um'),
            bb=Dict(x2=5,y2='YYYsdg',z='100um'))
        key_list = ['aa', 'x1', 'dda']
        [get_dict_item](myDict, key_list)
        returns 34

    """
    if key_list:
        for k in key_list:
            if k not in dic:
                raise Exception(f"CANAOT FIND ERROR{k} not in {dic}!!! :( ")
            dic = dic[k]

    return dic