code: def basecompiledir_ls():
      """
      Print list of files in the "pytensor.config.base_compiledir"
      """
      subdirs = []
      others = []
      for f in os.listdir(config.base_compiledir):
          if os.path.isdir(os.path.join(config.base_compiledir, f)):
              subdirs.append(f)
          else:
              others.append(f)
  
      subdirs = sorted(subdirs)
      others = sorted(others)
  
      print(f"Base compile dir is {config.base_compiledir}")
      print("Sub-directories (possible compile caches):")
      for d in subdirs:
          print(f"    {d}")
      if not subdirs:
          print("    (None)")
  
      if others:
          print()
          print("Other files in base_compiledir:")
          for f in others:
              print(f"    {f}")
  
file_path: pytensor/pytensor/compile/compiledir.py
imports: import logging
  import os
  import pickle
  import shutil
  import numpy
  from pytensor.configdefaults import config
  from pytensor.graph.op import Op
  from pytensor.link.c.type import CType
  from pytensor.utils import flatten
label_desc: Use image node_id 5 for calling a global function with example usage: basecompiledir_ls() without return types