def METHOD_NAME(self, template_name):
    if template_name.value == "classic":
        self.log.warning(
            '"classic" template support will be removed in Voila 1.0.0, '
            'please use the "lab" template instead with the "--show-margins" '
            "option for a similar look"
        )
    return template_name.value