code: def main() -> None:
      if sys.platform == "win32":
          # Strangely user site is not enabled on Windows.
          prefix = Path(sys.prefix)
      else:
          prefix = Path(site.getuserbase())
  
      print("Extract Python packages to", prefix)
      print("All Python paths:")
      print("\n".join(sys.path), flush=True)
  
      extract_all(ZipFile(sys.argv[1]))
      empty_dirs = json.loads(Path("directories.json").read_text())
      symlinks = json.loads(Path("symlinks.json").read_text())
      for dir_ in empty_dirs:
          Path(dir_).mkdir(parents=True, exist_ok=True)
      for link, target in symlinks.items():
          Path(link).symlink_to(
              target
          )  # hopefully nobody uses symlink on windows
  
      move_or_merge(Path("cache/python-dependencies"), prefix)
      shutil.move(
          "cache/nni-manager-dependencies",
          "ts/nni_manager/node_modules",
      )
      shutil.move("cache/webui-dependencies", "ts/webui/node_modules")
  
file_path: nni/test/vso_tools/unpack_dependencies.py
imports: from __future__ import annotations
  import json
  import os
  from pathlib import Path
  import shutil
  import site
  import sys
  from zipfile import ZipFile
label_desc: Use image node_id 1 for calling a global function with example usage: main() without return types