code: def patch_so(srcs_dir: str) -> None:
      """Patch .so files.
  
      We must patch some of .so files otherwise auditwheel will fail.
  
      Args:
        srcs_dir: target directory with .so files to patch.
      """
      to_patch = {
          "tensorflow/python/_pywrap_tensorflow_internal.so": "$ORIGIN/../../tensorflow/tsl/python/lib/core",
          (
              "tensorflow/compiler/mlir/quantization/tensorflow/python/"
              "pywrap_function_lib.so"
          ): "$ORIGIN/../../../../../python",
          (
              "tensorflow/compiler/mlir/quantization/tensorflow/python/"
              "pywrap_quantize_model.so"
          ): "$ORIGIN/../../../../../python",
          (
              "tensorflow/compiler/mlir/quantization/tensorflow/calibrator/"
              "pywrap_calibration.so"
          ): "$ORIGIN/../../../../../python",
      }
      for file, path in to_patch.items():
          subprocess.run(
              [
                  "patchelf",
                  "--add-rpath",
                  path,
                  "{}/{}".format(srcs_dir, file),
              ],
              check=True,
          )
          subprocess.run(
              [
                  "patchelf",
                  "--shrink-rpath",
                  "{}/{}".format(srcs_dir, file),
              ],
              check=True,
          )
  
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 7 for calling a global function with example usage: patch_so(srcs_dir) without return types