code: def extract_all(zf: ZipFile) -> None:
      # fix a bug in ZipFile.extractall()
      # see https://stackoverflow.com/questions/39296101
      for info in zf.infolist():
          path = zf.extract(info)
          if info.external_attr > 0xFFFF:
              os.chmod(path, info.external_attr >> 16)
  
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 2 for calling a global function with example usage: extract_all(zf) without return types