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: Read at most ``size`` bytes from the pty, return them as unicode.
  
  Can block if there is nothing to read. Raises :exc:`EOFError` if the
  terminal was closed.
  
  The size argument still refers to bytes, not unicode code points.
docstr_tok: ["Read","at","most","``","size","``","bytes","from","the","pty",",","return","them","as","unicode",".","Can","block","if","there","is","nothing","to","read",".","Raises",":","exc",":","`","EOFError","`","if","the","terminal","was","closed",".","The","size","argument","still","refers","to","bytes",",","not","unicode","code","points","."]
code: def read(self, size=1024):
      """Read at most ``size`` bytes from the pty, return them as unicode.
  
      Can block if there is nothing to read. Raises :exc:`EOFError` if the
      terminal was closed.
  
      The size argument still refers to bytes, not unicode code points.
      """
      b = super(PtyProcessUnicode, self).read(size)
      return self.decoder.decode(b, final=False)
  
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 2 for calling the PtyProcessUnicode obj's underlying member method code with example usage: obj.read(size) and returns: self