code: def compile_path(
      skip_curdir=1,
      maxlevels=0,
      force=False,
      quiet=0,
      legacy=False,
      optimize=-1,
      invalidation_mode=None,
  ):
      """Byte-compile all module on sys.path.
  
      Arguments (all optional):
  
      skip_curdir: if true, skip current directory (default True)
      maxlevels:   max recursion level (default 0)
      force: as for compile_dir() (default False)
      quiet: as for compile_dir() (default 0)
      legacy: as for compile_dir() (default False)
      optimize: as for compile_dir() (default -1)
      invalidation_mode: as for compiler_dir()
      """
      success = True
      for dir in sys.path:
          if (not dir or dir == os.curdir) and skip_curdir:
              if quiet < 2:
                  print("Skipping current directory")
          else:
              success = success and compile_dir(
                  dir,
                  maxlevels,
                  None,
                  force,
                  quiet=quiet,
                  legacy=legacy,
                  optimize=optimize,
                  invalidation_mode=invalidation_mode,
              )
      return success
  
file_path: catboost/contrib/tools/python3/src/Lib/compileall.py
imports: import os
  import sys
  import importlib.util
  import py_compile
  import struct
  import filecmp
  from functools import partial
  from pathlib import Path
label_desc: Use image node_id 4 for calling a global function with example usage: compile_path(skip_curdir, maxlevels, force, quiet, legacy, optimize, invalidation_mode) and returns: success