code: def to_bytes(self, frame, state):
          
  
          # Generate and return the frame
          return (self.begin +
                  self.nop.join(six.binary_type(frame).split(self.prefix)) +
                  self.end)
docs: Convert a single frame into bytes that can be transmitted on
          the stream.
  
          :param frame: The frame to convert.  Should be the same type
                        of object returned by ``to_frame()``.
          :param state: An instance of ``FramerState``.  This object may
                        be used to track information across calls to the
                        method.
  
          :returns: Bytes that may be transmitted on the stream.