def validate_and_normalize_unique_id(unique_id: str) -> str:
    """
    Take a host of unique_id formats and convert them into a "normalized" version.
    For example, "@tiktoklive" -> "tiktoklive"

    :return: Normalized version of the unique_id
    """

    if not isinstance(unique_id, str):
        raise Exception("Missing or invalid value for 'uniqueId'. Please provide the username from TikTok URL.")

    return (
        unique_id
            .replace("https://www.tiktok.com/", "")
            .replace("/live", "")
            .replace("@", "")
            .strip()
    )