code: def test_without_timeout(tmpfile):
      # Open the file 2 times
      with pytest.raises(portalocker.LockException):
          with portalocker.Lock(tmpfile, timeout=None) as fh:
              print("writing some stuff to my cache...", file=fh)
              with portalocker.Lock(tmpfile, timeout=None, mode="w"):
                  pass
              print("writing more stuff to my cache...", file=fh)
  
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 4 for calling a global function with example usage: test_without_timeout(tmpfile) without return types