def extract_tags(cgx_dict):
    """
    This function looks at a CloudGenix config object, and gets tags.
    :param cgx_dict: CloudGenix config dict, expects "tags" keys supported in root.
    :return: list of tags present.
    """

    # tags exist, return them.
    tags = cgx_dict.get("tags", [])
    if tags is None:
        tags = []

    # return unique tags.
    return list(set(tags))