code: def prepare_srcs(deps: list[str], srcs_dir: str) -> None:
      """Rearrange source files in target the target directory.
  
      Exclude `external` files and move vendored xla/tsl files accordingly.
  
      Args:
        deps: a list of paths to files.
        srcs_dir: target directory where files are copied to.
      """
      path_to_replace = {
          "external/local_xla/": "tensorflow/compiler",
          "external/local_tsl/": "tensorflow",
      }
  
      for file in deps:
          for path, val in path_to_replace.items():
              if path in file:
                  copy_file(file, os.path.join(srcs_dir, val), path)
                  break
          else:
              # exclude external py files
              if "external" not in file:
                  copy_file(file, srcs_dir)
  
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 3 for calling a global function with example usage: prepare_srcs(deps, srcs_dir) without return types