code: def write_frame(self, frame_type, channel, payload):
          
          size = len(payload)
          self._write(pack('>BHI%dsB' % size,
              frame_type, channel, size, payload, 0xce))
docs: Write out an AMQP frame.