code: def relocate_dll_library(dumpbin, output_dir, output_library, binary):
      """
      Relocate a DLL/PE shared library to be packaged on a wheel.
  
      Given a shared library, find the transitive closure of its dependencies,
      rename and copy them into the wheel.
      """
      print(f"Relocating {binary}")
      binary_path = osp.join(output_library, binary)
  
      library_dlls = find_dll_dependencies(dumpbin, binary_path)
      binary_queue = [(dll, binary) for dll in library_dlls]
      binary_paths = {binary: binary_path}
      binary_dependencies = {}
  
      while binary_queue != []:
          library, parent = binary_queue.pop(0)
          if library in WINDOWS_ALLOWLIST or library.startswith(
              "api-ms-win"
          ):
              print(f"Omitting {library}")
              continue
  
          library_path = find_program(library)
          if library_path is None:
              print(f"{library} not found")
              continue
  
          if osp.basename(osp.dirname(library_path)) == "system32":
              continue
  
          print(f"{library}: {library_path}")
          parent_dependencies = binary_dependencies.get(parent, [])
          parent_dependencies.append(library)
          binary_dependencies[parent] = parent_dependencies
  
          if library in binary_paths:
              continue
  
          binary_paths[library] = library_path
          downstream_dlls = find_dll_dependencies(dumpbin, library_path)
          binary_queue += [(n, library) for n in downstream_dlls]
  
      print("Copying dependencies to wheel directory")
      package_dir = osp.join(output_dir, "torchvision")
      for library in binary_paths:
          if library != binary:
              library_path = binary_paths[library]
              new_library_path = osp.join(package_dir, library)
              print(f"{library} -> {new_library_path}")
              shutil.copyfile(library_path, new_library_path)
  
imports: import glob
  import hashlib
  import os
  import os.path
  import platform
  import shutil
  import subprocess
  import sys
  import zipfile
  from base64 import urlsafe_b64encode
label_desc: Use image node_id 8 for calling a global function with example usage: relocate_dll_library(dumpbin, output_dir, output_library, binary) without return types