def reduce_dirs(dirs: list) ->list:
    """Given a sequence of directories, remove duplicates and any directories nested in one of the other paths. (Useful for recursive path searching). 

    :param dirs: Sequence of directory paths. 
    :type dirs: list
    :return:  A unique list of paths. 
    """
    pass
