class_docstr: Internal worker message containing computed minibatch or error message sent from the main
  thread to the dispatcher thread. The dispatcher thread serializes the batch or the error and
  forwards the result as `CompletedTask` to the main process
class_docstr_tok: ["Internal","worker","message","containing","computed","minibatch","or","error","message","sent","from","the","main","thread","to","the","dispatcher","thread",".","The","dispatcher","thread","serializes","the","batch","or","the","error","and","forwards","the","result","as","`","CompletedTask","`","to","the","main","process"]
code: def done(cls, scheduled, shm_chunk, data_batch):
      return cls(scheduled, shm_chunk, data_batch)
  
imports: from typing import List, Optional, Tuple
  import threading
  import traceback
  import socket
  from collections import deque
  from multiprocessing import reduction
  from nvidia.dali._utils.external_source_impl import SourceKind, _is_generator_function
  from nvidia.dali._multiproc.shared_batch import SharedBatchWriter, SharedBatchMeta, BufShmChunk, assert_valid_data_type, read_shm_message, write_shm_message
  from nvidia.dali._multiproc.messages import CompletedTask, WorkerArgs, ShmMessageDesc, ScheduledTask
  from nvidia.dali._multiproc.shared_queue import Dispatcher
label_desc: Use image node_id 2 for calling the _WorkerProcessingResult obj's underlying member method code with example usage: obj.done(cls, scheduled, shm_chunk, data_batch) and returns: cls