code: def fix_headers(filenames):
      repls = []
  
      print("Locating true header paths.")
  
      for filename in filenames:
          # Get the correct path of the file.
          header_files = [
              fn
              for fn in raw_header_list
              if fn.endswith("/" + filename) and "boost/" not in fn
          ]
  
          if len(header_files) == 0:
              error_out("File ", filename, " not found in repository.")
  
          if len(header_files) > 1:
              error_out(
                  "Multiple matches for file ",
                  filename,
                  " found. Please disambiguate by providing part of the path.\n"
                  "Found: \n" + "\n".join(header_files),
              )
  
          new_file = header_files[0]
          assert new_file.startswith(
              ("%s/" % header_root).replace("//", "/")
          ), new_file
  
          new_file = new_file[len(header_root) + 1 :]
  
          repls.append((filename, new_file))
  
      if len(repls) > 100:
          print("Fixing header locations for %d headers." % len(repls))
      else:
          print(
              "Fixing header locations for headers: \n"
              + "\n".join("  %s -> %s" % (h, fl) for h, fl in repls)
          )
  
      shell_cmd = "\n".join(
          "{2} || echo 'ERROR fixing {0}; ignoring.' && echo 'Fixed {0} (True = {1}). ' \n".format(
              header, new_file, fix_headers_cmd(header, new_file)
          )
          for header, new_file in repls
      )
  
      open("run_all.out", "w").write(shell_cmd)
  
      import tempfile
  
      with tempfile.NamedTemporaryFile(mode="w", delete=False) as temp:
          temp.write(shell_cmd)
          temp.flush()
          subprocess.check_call(["bash", temp.name])
  
file_path: turicreate/scripts/fix_headers.py
imports: import os
  import re
  import sys
  from os.path import join, split, normpath, exists
  import subprocess
  import argparse
  from collections import defaultdict
label_desc: Use image node_id 5 for calling a global function with example usage: fix_headers(filenames) without return types