def METHOD_NAME(payload: WildValue) -> str:
    if payload["eventType"].tame(check_string) == "Test":
        topic = LIDARR_TOPIC_TEMPLATE_TEST
    else:
        topic = LIDARR_TOPIC_TEMPLATE.format(
            artist_name=payload["artist"]["name"].tame(check_string)
        )
    return topic