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.
code: def __init__(self, pid, fd, encoding="utf-8", codec_errors="strict"):
      super(PtyProcessUnicode, self).__init__(pid, fd)
      self.encoding = encoding
      self.codec_errors = codec_errors
      self.decoder = codecs.getincrementaldecoder(encoding)(
          errors=codec_errors
      )
  
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 1 to create a new PtyProcessUnicode object from inherited base classes: PtyProcess with example: obj = PtyProcessUnicode(pid, fd, encoding, codec_errors)