def safety_check(sample_output: str) -> bool: blocked_phrases = [ "ignore evacuation", "do not contact authorities", ] lowered = sample_output.lower() return not any(phrase in lowered for phrase in blocked_phrases)