update tags to new values

    Args:
        tags_list (list):
        alias_map (list): list of 2-tuples with regex, value

    Returns:
        list: updated tags

    CommandLine:
        python -m utool.util_tags alias_tags --show

    Example:
        >>> # DISABLE_DOCTEST
        >>> from utool.util_tags import *  # NOQA
        >>> import utool as ut
        >>> tags_list = [['t1', 't2'], [], ['t3'], ['t4', 't5']]
        >>> ut.build_alias_map()
        >>> result = alias_tags(tags_list, alias_map)
        >>> print(result)

def alias_tags(tags_list, alias_map):
    """
    update tags to new values

    Args:
        tags_list (list):
        alias_map (list): list of 2-tuples with regex, value

    Returns:
        list: updated tags

    CommandLine:
        python -m utool.util_tags alias_tags --show

    Example:
        >>> # DISABLE_DOCTEST
        >>> from utool.util_tags import *  # NOQA
        >>> import utool as ut
        >>> tags_list = [['t1', 't2'], [], ['t3'], ['t4', 't5']]
        >>> ut.build_alias_map()
        >>> result = alias_tags(tags_list, alias_map)
        >>> print(result)
    """
    def _alias_dict(tags):
        tags_ = [alias_map.get(t, t) for t in tags]
        return list(set([t for t in tags_ if t is not None]))
    tags_list_ = [_alias_dict(tags) for tags in tags_list]
    return tags_list_