class_docstr: This is the main class interface for Pexpect. Use this class to start
  and control child applications. 
class_docstr_tok: ["This","is","the","main","class","interface","for","Pexpect",".","Use","this","class","to","start","and","control","child","applications","."]
docstr: This returns True if the file descriptor is open and connected to a
  tty(-like) device, else False.
  
  On SVR4-style platforms implementing streams, such as SunOS and HP-UX,
  the child pty may not appear as a terminal device.  This means
  methods such as setecho(), setwinsize(), getwinsize() may raise an
  IOError. 
docstr_tok: ["This","returns","True","if","the","file","descriptor","is","open","and","connected","to","a","tty","(","-like",")","device",",","else","False",".","On","SVR4-style","platforms","implementing","streams",",","such","as","SunOS","and","HP-UX",",","the","child","pty","may","not","appear","as","a","terminal","device",".","This","means","methods","such","as","setecho","(",")",",","setwinsize","(",")",",","getwinsize","(",")","may","raise","an","IOError","."]
code: def isatty(self):
      """This returns True if the file descriptor is open and connected to a
      tty(-like) device, else False.
  
      On SVR4-style platforms implementing streams, such as SunOS and HP-UX,
      the child pty may not appear as a terminal device.  This means
      methods such as setecho(), setwinsize(), getwinsize() may raise an
      IOError."""
  
      return os.isatty(self.child_fd)
  
imports: import os
  import sys
  import time
  import pty
  import tty
  import errno
  import signal
  from contextlib import contextmanager
  import ptyprocess
  from ptyprocess.ptyprocess import use_native_pty_fork
  from .exceptions import ExceptionPexpect, EOF, TIMEOUT
  from .spawnbase import SpawnBase
  from .utils import which, split_command_line, select_ignore_interrupts, poll_ignore_interrupts
label_desc: Use image node_id 6 for calling the spawn obj's underlying member method code with example usage: obj.isatty() and returns: os