code: def rename_libtensorflow(srcs_dir: str, version: str):
      """Update libtensorflow_cc file name.
  
      Bazel sets full TF version in name but libtensorflow_cc must contain only
      major. Update accordingly to the platform:
      e.g. libtensorflow_cc.so.2.15.0 -> libtensorflow_cc.2
  
      Args:
        srcs_dir: target directory with files.
        version: Major version to be set.
      """
      major_version = version.split(".")[0]
      if is_macos():
          shutil.move(
              os.path.join(
                  srcs_dir, "libtensorflow_cc.{}.dylib".format(version)
              ),
              os.path.join(
                  srcs_dir,
                  "libtensorflow_cc.{}.dylib".format(major_version),
              ),
          )
          shutil.move(
              os.path.join(
                  srcs_dir,
                  "libtensorflow_framework.{}.dylib".format(version),
              ),
              os.path.join(
                  srcs_dir,
                  "libtensorflow_framework.{}.dylib".format(
                      major_version
                  ),
              ),
          )
      else:
          shutil.move(
              os.path.join(
                  srcs_dir, "libtensorflow_cc.so.{}".format(version)
              ),
              os.path.join(
                  srcs_dir,
                  "libtensorflow_cc.so.{}".format(major_version),
              ),
          )
          shutil.move(
              os.path.join(
                  srcs_dir,
                  "libtensorflow_framework.so.{}".format(version),
              ),
              os.path.join(
                  srcs_dir,
                  "libtensorflow_framework.so.{}".format(major_version),
              ),
          )
  
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 8 for calling a global function with example usage: rename_libtensorflow(srcs_dir, version) without return types