$def with (message) $code def format(status: str, time: int) -> str: if status == ResultStatus.OK: return MAP_STATUS[status] + ', ' + minutes_seconds(time) + ' min' else: return MAP_STATUS[status] def background(status: str) -> str: if status == ResultStatus.OK: return "bgg" else: return "bgr"