def _get_color_end_tex(entity_id: str) -> str:
    """
    A message is added after an entity is colorized to assist the pipeline with error recovery.
    This allows the pipeline to scan the output of the TeX compiler to detect which entities
    were successfully colorized before errors were encountered.
    """
    return rf"\scholarrevertcolor{{}}\message{{S2: Colorized entity '{entity_id}'.}}"