code: def prepare_headers(headers: list[str], srcs_dir: str) -> None:
      """Copy and rearrange header files in the target directory.
  
      Filter out headers by their path and replace paths for some of them.
  
      Args:
        headers: a list of paths to header files.
        srcs_dir: target directory where headers are copied to.
      """
      path_to_exclude = [
          "external/pypi",
          "external/jsoncpp_git/src",
          "local_config_cuda/cuda/_virtual_includes",
          "local_config_tensorrt",
          "python_x86_64",
          "python_aarch64",
          "llvm-project/llvm/",
      ]
  
      path_to_replace = {
          "external/com_google_absl/": "",
          "external/eigen_archive/": "",
          "external/jsoncpp_git/": "",
          "external/com_google_protobuf/src/": "",
          "external/local_xla/": "tensorflow/compiler",
          "external/local_tsl/": "tensorflow",
      }
  
      for file in headers:
          if file.endswith("cc.inc"):
              continue
  
          if any(i in file for i in path_to_exclude):
              continue
  
          for path, val in path_to_replace.items():
              if path in file:
                  copy_file(file, os.path.join(srcs_dir, val), path)
                  break
          else:
              copy_file(file, srcs_dir)
  
      create_local_config_python(
          os.path.join(srcs_dir, "external/local_config_python")
      )
  
      shutil.copytree(
          os.path.join(srcs_dir, "external/local_config_cuda/cuda"),
          os.path.join(srcs_dir, "third_party/gpus"),
      )
      shutil.copytree(
          os.path.join(srcs_dir, "tensorflow/compiler/xla"),
          os.path.join(srcs_dir, "xla"),
      )
      shutil.copytree(
          os.path.join(srcs_dir, "tensorflow/tsl"),
          os.path.join(srcs_dir, "tsl"),
      )
  
imports: import argparse
  import glob
  import os
  import shutil
  import subprocess
  import sys
  import tempfile
  from tensorflow.tools.pip_package.v2.utils.utils import copy_file
  from tensorflow.tools.pip_package.v2.utils.utils import create_init_files
  from tensorflow.tools.pip_package.v2.utils.utils import is_macos
  from tensorflow.tools.pip_package.v2.utils.utils import is_windows
  from tensorflow.tools.pip_package.v2.utils.utils import replace_inplace
label_desc: Use image node_id 2 for calling a global function with example usage: prepare_headers(headers, srcs_dir) without return types