Print text with highlighting and no end characters.
If a color is provided, the text will be printed in that color.
If a file is provided, the text will be written to that file.
print_text(
text: str,
color: str | None = None,
end: str = '',
file: TextIO | None = None
) -> None