code: def sanitize_names(path):
      if os.path.isdir(path):
          # get all subdirs in path and recursively transfer all files in that subdir
          subdirpath = path
          onlydirs = [
              f
              for f in os.listdir(subdirpath)
              if os.path.isdir(os.path.join(subdirpath, f))
          ]
          for dir in onlydirs:
              sanitize_names(os.path.join(path, dir))
  
      # get all filenames in current dir
      files = [
          f
          for f in os.listdir(path)
          if os.path.isfile(os.path.join(path, f))
      ]
  
      # iterate through all filenames and remove coremltools prefix
      for file in files:
          if file.startswith("coremltools"):
              currpath = os.path.join(path, file)
              newpath = os.path.join(path, file[file.find(".") + 1 :])
              os.rename(currpath, newpath)
  
file_path: coremltools/mlmodel/docs/upload_docs.py
imports: import argparse
  import readme_session
  import functools
  import coremltools
  import pathlib
  import os
  import re
label_desc: Use image node_id 1 for calling a global function with example usage: sanitize_names(path) without return types