class_docstr: A thread that has a 'stop' event.
docstr: Take obj from queue, but will give up when the thread is stopped
docstr_tok: ["Take","obj","from","queue",",","but","will","give","up","when","the","thread","is","stopped"]
code: def queue_get_stoppable(self, q):
      """Take obj from queue, but will give up when the thread is stopped"""
      while not self.stopped():
          try:
              return q.get(timeout=5)
          except queue.Empty:
              pass
  
imports: import sys
  import atexit
  import bisect
  import multiprocessing
  import platform
  import signal
  import threading
  import weakref
  from contextlib import contextmanager
  import six
  from six.moves import queue
  import subprocess
  from .None import logger
  from .argtools import log_once
label_desc: Use image node_id 5 for calling the StoppableThread obj's underlying member method code with example usage: obj.queue_get_stoppable(q) and returns: q