code: def main() -> None:
      args = parser.parse_args()
  
      relative_prefix = args.prefix.relative_to(pathlib.Path("/"))
      args.srcdir = SRCDIR
      args.srcdir_lib = SRCDIR_LIB
      args.wasm_root = args.buildroot / relative_prefix
      args.wasm_stdlib_zip = args.wasm_root / WASM_STDLIB_ZIP
      args.wasm_stdlib = args.wasm_root / WASM_STDLIB
      args.wasm_dynload = args.wasm_root / WASM_DYNLOAD
  
      # bpo-17004: zipimport supports only zlib compression.
      # Emscripten ZIP_STORED + -sLZ4=1 linker flags results in larger file.
      args.compression = zipfile.ZIP_DEFLATED
      args.compresslevel = 9
  
      args.builddir = get_builddir(args)
      args.sysconfig_data = get_sysconfigdata(args)
      if not args.sysconfig_data.is_file():
          raise ValueError(
              f"sysconfigdata file {args.sysconfig_data} missing."
          )
  
      extmods = detect_extension_modules(args)
      omit_files = list(OMIT_FILES)
      if sysconfig.get_platform().startswith("emscripten"):
          omit_files.extend(OMIT_NETWORKING_FILES)
      for modname, modfiles in OMIT_MODULE_FILES.items():
          if not extmods.get(modname):
              omit_files.extend(modfiles)
  
      args.omit_files_absolute = {
          (args.srcdir_lib / name).resolve() for name in omit_files
      }
  
      # Empty, unused directory for dynamic libs, but required for site initialization.
      args.wasm_dynload.mkdir(parents=True, exist_ok=True)
      marker = args.wasm_dynload / ".empty"
      marker.touch()
      # os.py is a marker for finding the correct lib directory.
      shutil.copy(args.srcdir_lib / "os.py", args.wasm_stdlib)
      # The rest of stdlib that's useful in a WASM context.
      create_stdlib_zip(args)
      size = round(args.wasm_stdlib_zip.stat().st_size / 1024**2, 2)
      parser.exit(0, f"Created {args.wasm_stdlib_zip} ({size} MiB)\n")
  
file_path: cpython/Tools/wasm/wasm_assets.py
imports: import argparse
  import pathlib
  import shutil
  import sys
  import sysconfig
  import zipfile
  from typing import Dict
label_desc: Use image node_id 6 for calling a global function with example usage: main() without return types