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"):
          print(
              "Error!! This needs to always be run from the root of repo"
          )
          sys.exit(-1)
      all_files = list_all_src_files(
          args.regex_compiled,
          args.ignore_compiled,
          args.dirs,
          args.dstdir,
          args.inplace,
      )
      # actual format checker
      status = True
      for src, dst in all_files:
          if not run_clang_format(
              src, dst, args.exe, args.verbose, args.inplace
          ):
              status = False
      if not status:
          print("clang-format failed! You have 2 options:")
          print(
              " 1. Look at formatting differences above and fix them manually"
          )
          print(
              " 2. Or run the below command to bulk-fix all these at once"
          )
          print("Bulk-fix command: ")
          print(
              "  python cpp/scripts/run-clang-format.py %s -inplace"
              % " ".join(sys.argv[1:])
          )
          sys.exit(-1)
      return
  
file_path: cusignal/cpp/scripts/run-clang-format.py
imports: from __future__ import print_function
  import argparse
  import os
  import re
  import subprocess
  import sys
  import tempfile
label_desc: Use image node_id 4 for calling a global function with example usage: main() without return types