code: def test_multiple_file_locks(tmp_path, monkeypatch):
      """Test that a new file lock is created for unique paths."""
      monkeypatch.setenv("RAY_TMPDIR", str(tmp_path))
      with TempFileLock(path="abc.txt"):
          with TempFileLock(path="subdir/abc.txt"):
              assert RAY_LOCKFILE_DIR in os.listdir(tmp_path)
              # We should have 2 locks, one for abc.txt and one for subdir/abc.txt
              assert len(os.listdir(tmp_path / RAY_LOCKFILE_DIR)) == 2
  
imports: import os
  import pytest
  import ray
  from ray.air._internal.filelock import RAY_LOCKFILE_DIR, TempFileLock
label_desc: Use image node_id 2 for calling a global function with example usage: test_multiple_file_locks(tmp_path, monkeypatch) without return types