code: def copy_if_modified(src, dest):
      try:
          dest_stat = os.stat(dest)
      except FileNotFoundError:
          do_copy = True
      else:
          src_stat = os.stat(src)
          do_copy = (
              src_stat.st_mtime != dest_stat.st_mtime
              or src_stat.st_size != dest_stat.st_size
          )
  
      if do_copy:
          try:
              shutil.copy2(src, dest)
          except FileNotFoundError:
              raise FileNotFoundError(src) from 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 1 for calling a global function with example usage: copy_if_modified(src, dest) without return types