code: def __init__(self, kind, value, maxvalue):
      sl = self._semlock = _multiprocessing.SemLock(
          kind, value, maxvalue
      )
      debug("created semlock with handle %s" % sl.handle)
      self._make_methods()
  
      if sys.platform != "win32":
  
          def _after_fork(obj):
              obj._semlock._after_fork()
  
          register_after_fork(self, _after_fork)
  
imports: import threading
  import os
  import sys
  from time import time, sleep
  import _multiprocessing
  from multiprocessing.process import current_process
  from multiprocessing.util import Finalize, register_after_fork, debug
  from multiprocessing.forking import assert_spawning, Popen
label_desc: Use image node_id 1 to create a new SemLock object from inherited base classes: object with example: obj = SemLock(kind, value, maxvalue)