code: def __init__(self, obj, lock=None, ctx=None):
      self._obj = obj
      if lock:
          self._lock = lock
      else:
          ctx = ctx or get_context(force=True)
          self._lock = ctx.RLock()
      self.acquire = self._lock.acquire
      self.release = self._lock.release
  
imports: import ctypes
  import weakref
  from .None import heap
  from .None import get_context
  from .context import reduction, assert_spawning
label_desc: Use image node_id 1 to create a new SynchronizedBase object from inherited base classes: object with example: obj = SynchronizedBase(obj, lock, ctx)