def color()

in 01-agents/demo_util.py [0:0]


def color(text, color):
    color_codes = {
        "red": "\033[91m",
        "green": "\033[92m",
        "yellow": "\033[93m",
        "blue": "\033[94m",
        "magenta": "\033[95m",
        "cyan": "\033[96m",
        "white": "\033[97m",
        "reset": "\033[0m",
        "grey": "\033[90m",
    }
    return f"{color_codes.get(color, color_codes['reset'])}{text}{color_codes['reset']}"