code: def __init__(self, address, port, workerName=None):
      url = "http://%s:%s/PyAlgoTradeRPC" % (address, port)
      self.__logger = pyalgotrade.logger.getLogger(workerName)
      self.__server = xmlrpc_client.ServerProxy(url, allow_none=True)
      if workerName is None:
          self.__workerName = socket.gethostname()
      else:
          self.__workerName = workerName
  
imports: import socket
  import multiprocessing
  import retrying
  from six.moves import xmlrpc_client
  import pyalgotrade.logger
  from pyalgotrade import barfeed
  from pyalgotrade.optimizer import serialization
label_desc: Use image node_id 1 to create a new Worker object from inherited base classes: object with example: obj = Worker(address, port, workerName)