in bonsaicli2/bonsai_cli/commands/assessment.py [0:0]
def get_assessment_status(state: str):
status = ""
if state.lower() == "active":
status = "In progress"
elif state.lower() == "cancelled":
status = "Stopped"
elif state.lower() == "complete":
status = "Completed"
elif state.lower() == "deadlineexceeded":
status = "Timed out"
elif state.lower() == "error":
status = "Error"
return status