code: def _write_to_zip(zf, dest, src, ns, checked=True):
      pyc = _py_temp_compile(src, dest, ns, checked=checked)
      if pyc:
          try:
              zf.write(str(pyc), dest.with_suffix(".pyc"))
          finally:
              try:
                  pyc.unlink()
              except:
                  log_exception("Failed to delete {}", pyc)
          return
  
      zf.write(str(src), str(dest))
  
imports: import argparse
  import os
  import shutil
  import sys
  import tempfile
  import zipfile
  from pathlib import Path
  from .support.appxmanifest import *
  from .support.catalog import *
  from .support.constants import *
  from .support.filesets import *
  from .support.logging import *
  from .support.options import *
  from .support.pip import *
  from .support.props import *
  from .support.nuspec import *
label_desc: Use image node_id 7 for calling a global function with example usage: _write_to_zip(zf, dest, src, ns, checked) without return types