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 tests if the child process is running or not. This is
  non-blocking. If the child was terminated then this will read the
  exitstatus or signalstatus of the child. This returns True if the child
  process appears to be running or False if not. It can take literally
  SECONDS for Solaris to return the right status. 
docstr_tok: ["This","tests","if","the","child","process","is","running","or","not",".","This","is","non-blocking",".","If","the","child","was","terminated","then","this","will","read","the","exitstatus","or","signalstatus","of","the","child",".","This","returns","True","if","the","child","process","appears","to","be","running","or","False","if","not",".","It","can","take","literally","SECONDS","for","Solaris","to","return","the","right","status","."]
code: def isalive(self):
      """This tests if the child process is running or not. This is
      non-blocking. If the child was terminated then this will read the
      exitstatus or signalstatus of the child. This returns True if the child
      process appears to be running or False if not. It can take literally
      SECONDS for Solaris to return the right status."""
  
      ptyproc = self.ptyproc
      with _wrap_ptyprocess_err():
          alive = ptyproc.isalive()
  
      if not alive:
          self.status = ptyproc.status
          self.exitstatus = ptyproc.exitstatus
          self.signalstatus = ptyproc.signalstatus
          self.terminated = True
  
      return alive
  
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 24 for calling the spawn obj's underlying member method code with example usage: obj.isalive() and returns: alive