code: def jobsPending(self):
      if self.__forcedStop:
          return False
  
      with self.__lock:
          jobsPending = not self.__paramSource.eof()
          activeJobs = len(self.__activeJobs) > 0
  
      return jobsPending or activeJobs
  
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 5 for calling the Server obj's underlying member method code with example usage: obj.jobsPending() and returns: unknown, False