def is_tag_exists(
    lf_client,
    account_id: str,
    key: str,
) -> bool:
    """
    Check if an Lake Formation tag exists or not

    Ref: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/lakeformation.html#LakeFormation.Client.get_lf_tag
    """
    try:
        lf_client.get_lf_tag(CatalogId=account_id, TagKey=key)
        return True
    except Exception as e:
        if str(e).endswith("GetLFTag operation: Tag key does not exist"):
            return False
        else:
            raise e