code: def __init__(self):
      self._locks = {}
  
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 to create a new ThreadFileLocks object from inherited base classes: threading with example: obj = ThreadFileLocks()