def METHOD_NAME(self, exit_command: str = "exit") -> str:
    """Exit enable mode."""
    output = ""
    if self.check_enable_mode():
        self.write_channel(self.normalize_cmd(exit_command))
        output += self.read_until_pattern(pattern=exit_command)
        output += self.read_until_pattern(pattern=self.prompt_pattern)
        # Nature of prompt might change with the privilege deescalation
        self.set_base_prompt(pattern=self.prompt_pattern)
        if self.check_enable_mode():
            raise ValueError("Failed to exit enable mode.")
    return output