def METHOD_NAME(fs: fsspec.AbstractFileSystem, monkeypatch, file_name: str):
    monkeypatch.setattr(TransactionalFile, "LOCK_TTL_SECONDS", 1)
    writer_1 = TransactionalFile(file_name, fs)
    writer_2 = TransactionalFile(file_name, fs)
    writer_1.acquire_lock()
    writer_1._stop_heartbeat()
    time.sleep(2.0)
    # Ensure a lock can be acquired after the TTL has expired
    assert writer_2.acquire_lock(blocking=False)
    writer_2.release_lock()