docstr: Initializes a worker.
  
  :param worker_id: An integer uniquely identifying a worker instance
  :param publish_func: Function handler to be used to publish data
  :param args: application specific args
docstr_tok: ["Initializes","a","worker",".",":","param","worker_id",":","An","integer","uniquely","identifying","a","worker","instance",":","param","publish_func",":","Function","handler","to","be","used","to","publish","data",":","param","args",":","application","specific","args"]
code: def __init__(self, worker_id, publish_func, args):
      """Initializes a worker.
  
      :param worker_id: An integer uniquely identifying a worker instance
      :param publish_func: Function handler to be used to publish data
      :param args: application specific args
      """
      self.worker_id = worker_id
      self.publish_func = publish_func
      self.args = args
  
imports: from abc import abstractmethod
label_desc: Use image node_id 1 to create a new WorkerBase object from inherited base classes: object with example: obj = WorkerBase(worker_id, publish_func, args)