code: def run(self):
      while self.__server.jobsPending():
          time.sleep(1)
      self.__server.stop()
  
imports: import threading
  import time
  from six.moves import xmlrpc_server
  import pyalgotrade.logger
  from pyalgotrade.optimizer import base
  from pyalgotrade.optimizer import serialization
label_desc: Use image node_id 2 for calling the AutoStopThread obj's underlying member method code with example usage: obj.run() without return types