code: def __init__(
      self, ctx, s1_mode, s2_mode, default_addr="tcp://0.0.0.0"
  ):
      self.s1_mode = s1_mode
      self.s2_mode = s2_mode
      self.default_addr = default_addr
      self.ctx = ctx
  
      self._start_process()
  
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 NanomsgDevice object from inherited base classes: NNGDevice with example: obj = NanomsgDevice(ctx, s1_mode, s2_mode, default_addr)