code: def test_blocking_timeout(tmpfile):
      flags = LockFlags.SHARED
  
      with pytest.warns(UserWarning):
          with portalocker.Lock(tmpfile, timeout=5, flags=flags):
              pass
  
      lock = portalocker.Lock(tmpfile, flags=flags)
      with pytest.warns(UserWarning):
          lock.acquire(timeout=5)
  
imports: from __future__ import print_function
  from __future__ import with_statement
  import os
  import dataclasses
  import multiprocessing
  import time
  import typing
  import pytest
  import portalocker
  from portalocker import utils
  from portalocker import LockFlags
label_desc: Use image node_id 15 for calling a global function with example usage: test_blocking_timeout(tmpfile) without return types