def BoundedSemaphore(value=1):
 from multiprocessing.synchronize import BoundedSemaphore
 return BoundedSemaphore(value)

def BoundedSemaphore ( value = 1 ) : from multiprocessing . synchronize import BoundedSemaphore return BoundedSemaphore ( value )
a factory function that returns a new bounded semaphore .