code: def force_unlock(lock_dir: os.PathLike):
      """Forces the release of the lock on a specific directory.
  
      Parameters
      ----------
      lock_dir : os.PathLike
          Path to a directory that was locked with `lock_ctx`.
      """
  
      fl = filelock.FileLock(os.path.join(lock_dir, ".lock"))
      fl.release(force=True)
  
      dir_key = f"{lock_dir}-{os.getpid()}"
  
      if dir_key in local_mem._locks:
          del local_mem._locks[dir_key]
  
file_path: pytensor/pytensor/compile/compilelock.py
imports: import os
  import threading
  from contextlib import contextmanager
  from typing import Optional, Union
  import filelock
  from pytensor.configdefaults import config
label_desc: Use image node_id 1 for calling a global function with example usage: force_unlock(lock_dir) without return types