code: def extract_zip(filename: str, targetdir: str) -> None:
      """Extract zip file to target directory."""
      ensuredir(targetdir)
  
      with ZipFile(filename) as archive:
          for name in archive.namelist():
              if name.endswith("/"):
                  continue
              entry = path.join(targetdir, name)
              ensuredir(path.dirname(entry))
              with open(path.join(entry), "wb") as fp:
                  fp.write(archive.read(name))
  
imports: from __future__ import annotations
  import configparser
  import os
  import shutil
  import sys
  import tempfile
  from os import path
  from typing import TYPE_CHECKING, Any
  from zipfile import ZipFile
  import contextlib
  from sphinx import package_dir
  from sphinx.config import check_confval_types
  from sphinx.errors import ThemeError
  from sphinx.locale import __
  from sphinx.util import logging
  from sphinx.util.osutil import ensuredir
label_desc: Use image node_id 1 for calling a global function with example usage: extract_zip(filename, targetdir) without return types