code: def test_lock_fileno(tmpfile):
      # Open the file 2 times
      a = open(tmpfile, "a")
      b = open(tmpfile, "a")
  
      # Lock exclusive non-blocking
      flags = LockFlags.SHARED | LockFlags.NON_BLOCKING
  
      # First lock file a
      portalocker.lock(a, flags)
  
      # Now see if we can lock using fileno()
      portalocker.lock(b.fileno(), flags)
  
      # Cleanup
      a.close()
      b.close()
  
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 23 for calling a global function with example usage: test_lock_fileno(tmpfile) without return types