class_docstr: Unicode wrapper around a process running in a pseudoterminal.
  
  This class exposes a similar interface to :class:`PtyProcess`, but its read
  methods return unicode, and its :meth:`write` accepts unicode.
docstr: Write the unicode string ``s`` to the pseudoterminal.
  
  Returns the number of bytes written.
docstr_tok: ["Write","the","unicode","string","``","s","``","to","the","pseudoterminal",".","Returns","the","number","of","bytes","written","."]
code: def write(self, s):
      """Write the unicode string ``s`` to the pseudoterminal.
  
      Returns the number of bytes written.
      """
      b = s.encode(self.encoding)
      return super(PtyProcessUnicode, self).write(b)
  
imports: import codecs
  import errno
  import fcntl
  import io
  import os
  import pty
  import resource
  import signal
  import struct
  import sys
  import termios
  import time
  from pty import STDIN_FILENO, CHILD
  from .util import which, PtyProcessError
label_desc: Use image node_id 4 for calling the PtyProcessUnicode obj's underlying member method code with example usage: obj.write(s) and returns: super