class_docstr: A wrapper to start a python script with timeout.
  
  To test the actual models even without GPUs we simply start them and
  test whether they survive a certain amount of time "timeout". This allows to
  test if all imports are correct and the computation graph can be built without
  run the entire model on the CPU.
  
  Attributes:
      cmd (str): command to execute the example with all flags (including python)
      p: process handle
      timeout (int): timeout in seconds
class_docstr_tok: ["A","wrapper","to","start","a","python","script","with","timeout",".","To","test","the","actual","models","even","without","GPUs","we","simply","start","them","and","test","whether","they","survive","a","certain","amount","of","time","``","timeout","''",".","This","allows","to","test","if","all","imports","are","correct","and","the","computation","graph","can","be","built","without","run","the","entire","model","on","the","CPU",".","Attributes",":","cmd","(","str",")",":","command","to","execute","the","example","with","all","flags","(","including","python",")","p",":","process","handle","timeout","(","int",")",":","timeout","in","seconds"]
docstr: Prepare a python script
  
  Args:
      cmd (str): command to execute the example with all flags (including python)
      timeout (int): time in seconds the script has to survive
docstr_tok: ["Prepare","a","python","script","Args",":","cmd","(","str",")",":","command","to","execute","the","example","with","all","flags","(","including","python",")","timeout","(","int",")",":","time","in","seconds","the","script","has","to","survive"]
code: def __init__(self, cmd, timeout):
      """Prepare a python script
  
      Args:
          cmd (str): command to execute the example with all flags (including python)
          timeout (int): time in seconds the script has to survive
      """
      threading.Thread.__init__(self)
      self.cmd = cmd
      self.timeout = timeout
  
file_path: tensorpack/tests/case_script.py
imports: from abc import abstractproperty
  import unittest
  import subprocess
  import shlex
  import sys
  import threading
  import os
  import shutil
label_desc: Use image node_id 1 to create a new PythonScript object from inherited base classes: threading with example: obj = PythonScript(cmd, timeout)