code: def copy_file(
      src_files: str | Sequence[str],
      dst_dir: pathlib.Path,
      dst_filename=None,
      runfiles=None,
  ) -> None:
      dst_dir.mkdir(parents=True, exist_ok=True)
      if isinstance(src_files, str):
          src_files = [src_files]
      for src_file in src_files:
          src_file_rloc = runfiles.Rlocation(src_file)
          if src_file_rloc is None:
              raise ValueError(
                  f"Unable to find wheel source file {src_file}"
              )
          src_filename = os.path.basename(src_file_rloc)
          dst_file = os.path.join(dst_dir, dst_filename or src_filename)
          if is_windows():
              shutil.copyfile(src_file_rloc, dst_file)
          else:
              shutil.copy(src_file_rloc, dst_file)
  
file_path: jax/jax/tools/build_utils.py
imports: from __future__ import annotations
  import os
  import pathlib
  import platform
  import shutil
  import sys
  import subprocess
  import glob
  from collections.abc import Sequence
label_desc: Use image node_id 2 for calling a global function with example usage: copy_file(src_files, dst_dir, dst_filename, runfiles) without return types