<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_frames(self, frames_out):
 """Write multiple pamqp frames from the current channel. :param list frames_out: A list of pamqp frames. :return: """

        self.check_for_errors()
        self._connection.write_frames(self.channel_id, frames_out)