<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def save_config( self, cmd="configuration write", confirm=False, confirm_response="" ):
 """Save Config on Mellanox devices Enters and Leaves Config Mode"""

        output = self.enable()
        output += self.config_mode()
        output += self.send_command(cmd)
        output += self.exit_config_mode()
        return output