code: def test_rlock_acquire_release_count(tmpfile):
      lock = portalocker.RLock(tmpfile)
      # Twice acquire
      h = lock.acquire()
      assert not h.closed
      lock.acquire()
      assert not h.closed
  
      # Two release
      lock.release()
      assert not h.closed
      lock.release()
      assert h.closed
  
file_path: catboost/contrib/python/portalocker/py2/tests/tests.py
imports: from __future__ import print_function
  from __future__ import with_statement
  import pytest
  import portalocker
label_desc: Use image node_id 9 for calling a global function with example usage: test_rlock_acquire_release_count(tmpfile) without return types