code: def test_nonblocking(tmpfile):
      with open(tmpfile, "w") as fh:
          with pytest.raises(RuntimeError):
              portalocker.lock(fh, LockFlags.NON_BLOCKING)
  
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 16 for calling a global function with example usage: test_nonblocking(tmpfile) without return types