class_docstr: A namespace to store the Dataset object for each process
  instead of passing it in each iteration which causes re-pickling
class_docstr_tok: ["A","namespace","to","store","the","Dataset","object","for","each","process","instead","of","passing","it","in","each","iteration","which","causes","re-pickling"]
code: def init(cls, ds, worker_type):
      cls._per_process_data[os.getpid()] = ds
      if worker_type != "thread":
          # disable keyboard interrupts in worker process
          import signal
  
          signal.signal(signal.SIGINT, signal.SIG_IGN)
  
imports: import multiprocessing.pool
  import os
  import typing
  import jax
  import jax.numpy
  import numpy
  from .data_adapter import DataAdapter
  from .utils import is_none_or_empty
label_desc: Use image node_id 1 for calling the WorkerContext obj's underlying member method code with example usage: obj.init(cls, ds, worker_type) without return types