code: def write_frames(self, channel_id, frames_out):
          
          data_out = EMPTY_BUFFER
          for single_frame in frames_out:
              data_out += pamqp_frame.marshal(single_frame, channel_id)
          self.heartbeat.register_write()
          self._io.write_to_socket(data_out)
docs: Marshal and write multiple outgoing pamqp frames to the Socket.
  
          :param int channel_id: Channel ID/
          :param list frames_out: Amqp frames.
  
          :return: