def METHOD_NAME():
    lock = threading.Lock()
    lock.acquire()  # [consider-using-with]
    lock.release()
    with lock:  # must not trigger
        pass
    rlock = threading.RLock()
    rlock.acquire()  # [consider-using-with]
    rlock.release()
    with rlock:  # must not trigger
        pass
    sema = threading.Semaphore()
    sema.acquire()  # [consider-using-with]
    sema.release()
    with sema:  # must not trigger
        pass
    bounded_sema = threading.BoundedSemaphore()
    bounded_sema.acquire()  # [consider-using-with]
    bounded_sema.release()
    with bounded_sema:  # must not trigger
        pass