docstr: :param args: Array of arrays. Defines which values to return at consequent process calls. For example,
  args = [[], [1], [12, 13]] will result in process not generating any results in the first call, generating '1'
  in the second and '12', '13' at the third invocation of 'process'
docstr_tok: [":","param","args",":","Array","of","arrays",".","Defines","which","values","to","return","at","consequent","process","calls",".","For","example",",","args","=","[","[","]",",","[","1","]",",","[","12",",","13","]","]","will","result","in","process","not","generating","any","results","in","the","first","call",",","generating","'","1'","in","the","second","and","'12","'",",","'13","'","at","the","third","invocation","of","'process","'"]
code: def __init__(self, worker_id, publish_func, args):
      """
      :param args: Array of arrays. Defines which values to return at consequent process calls. For example,
      args = [[], [1], [12, 13]] will result in process not generating any results in the first call, generating '1'
      in the second and '12', '13' at the third invocation of 'process'
      """
      super(PreprogrammedReturnValueWorker, self).__init__(
          worker_id, publish_func, args
      )
      self._program = args
      self._current_step = 0
  
imports: from time import sleep
  from petastorm.workers_pool.worker_base import WorkerBase
label_desc: Use image node_id 1 to create a new PreprogrammedReturnValueWorker object from inherited base classes: WorkerBase with example: obj = PreprogrammedReturnValueWorker(worker_id, publish_func, args)