def log_message(message: str) -> None: """Logs a message to the console.""" print(f"[LOG] {message}") def format_data(data: dict) -> str: """Formats a dictionary into a string for display.""" return "\n".join(f"{key}: {value}" for key, value in data.items()) def handle_error(error: Exception) -> None: """Handles errors by logging them.""" log_message(f"Error occurred: {str(error)}")