class_docstr: Raised on Process.wait(timeout) if timeout expires and process
  is still alive.
class_docstr_tok: ["Raised","on","Process.wait","(","timeout",")","if","timeout","expires","and","process","is","still","alive","."]
code: def __init__(self, seconds, pid=None, name=None):
      Error.__init__(self, "timeout after %s seconds" % seconds)
      self.seconds = seconds
      self.pid = pid
      self.name = name
      if (pid is not None) and (name is not None):
          self.msg += " (pid=%s, name=%s)" % (pid, repr(name))
      elif pid is not None:
          self.msg += " (pid=%s)" % self.pid
  
imports: from __future__ import division, print_function
  import contextlib
  import errno
  import functools
  import os
  import socket
  import stat
  import sys
  import threading
  import warnings
  from collections import defaultdict
  from collections import namedtuple
  from socket import AF_INET
  from socket import SOCK_DGRAM
  from socket import SOCK_STREAM
label_desc: Use image node_id 1 to create a new TimeoutExpired object from inherited base classes: Error with example: obj = TimeoutExpired(seconds, pid, name)