class_docstr: This class represents a process running in a pseudoterminal.
  
  The main constructor is the :meth:`spawn` classmethod.
code: def __repr__(self):
      clsname = type(self).__name__
      if self.argv is not None:
          args = [repr(self.argv)]
          if self.env is not None:
              args.append("env=%r" % self.env)
          if self.launch_dir is not None:
              args.append("cwd=%r" % self.launch_dir)
  
          return "{}.spawn({})".format(clsname, ", ".join(args))
  
      else:
          return "{}(pid={}, fd={})".format(clsname, self.pid, self.fd)
  
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 3 for calling the PtyProcess obj's underlying member method code with example usage: obj.__repr__() and returns: str, str