<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def write_frame(self, frame_out):
 """Write a pamqp frame from the current channel. :param specification.Frame frame_out: A single pamqp frame. :return: """

        self.check_for_errors()
        self._connection.write_frame(self.channel_id, frame_out)