def METHOD_NAME(self, key, display_name):
    sanitized_name = sanitize_name(display_name)
    if sanitized_name != display_name:
        log.warning(
            "Truncating category display_name",
            type_=self.type_,
            original=display_name,
        )
    return sanitized_name