code: def main():
      args = parse_args()
      # Attempt to making sure that we run this script from root of repo always
      if not os.path.exists(".git"):
          raise Exception(
              "This needs to always be run from the root of repo"
          )
      # Check whether clang-tidy exists
      if shutil.which("clang-tidy") is None:
          print(
              "Unable to find the clang-tidy executable, is it installed?",
              file=sys.stderr,
          )
          sys.exit(1)
      all_files = get_all_commands(args.cdb)
      status = run_tidy_for_all_files(args, all_files)
      if not status:
          raise Exception(
              "clang-tidy failed! Refer to the errors above."
          )
  
imports: import argparse
  import json
  import multiprocessing
  import os
  import re
  import shutil
  import subprocess
  import sys
  from pathlib import Path
  import tomli
label_desc: Use image node_id 16 for calling a global function with example usage: main() without return types