code: def __init__(self, s1_mode, s2_mode, ctx=get_ctx()):
      device, in_addr, out_addr = ctx.device(s1_mode, s2_mode)
      self.device = device
      self.in_addr = in_addr
      self.out_addr = out_addr
  
imports: import random
  import logging
  import multiprocessing
  import threading
  from fiber.backend import get_backend
label_desc: Use image node_id 1 to create a new ProcessDevice object  with example: obj = ProcessDevice(s1_mode, s2_mode, ctx)