code: def _compile_one_py(src, dest, name, optimize, checked=True):
      import py_compile
  
      if dest is not None:
          dest = str(dest)
  
      mode = (
          py_compile.PycInvalidationMode.CHECKED_HASH
          if checked
          else py_compile.PycInvalidationMode.UNCHECKED_HASH
      )
  
      try:
          return Path(
              py_compile.compile(
                  str(src),
                  dest,
                  str(name),
                  doraise=True,
                  optimize=optimize,
                  invalidation_mode=mode,
              )
          )
      except py_compile.PyCompileError:
          log_warning("Failed to compile {}", src)
          return None
  
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 5 for calling a global function with example usage: _compile_one_py(src, dest, name, optimize, checked) and returns: Path, None