def METHOD_NAME(manager, lock_name, expiration, unlock_sleep=0):
    manager.lock(lock_name, "lock_thread", expiration)
    if unlock_sleep:
        sleep(unlock_sleep)
        manager.unlock(lock_name, "lock_thread")