code: def process_openxml_file(filename: str,
                           print_good: bool,
                           delete_if_bad: bool) -> None:
      
      print_bad = not print_good
      try:
          file_good = is_openxml_good(filename)
          file_bad = not file_good
          if (print_good and file_good) or (print_bad and file_bad):
              print(filename)
          if delete_if_bad and file_bad:
              log.warning("Deleting: {}", filename)
              os.remove(filename)
      except Exception as e:
          # Must explicitly catch and report errors, since otherwise they vanish
          # into the ether.
          log.critical("Uncaught error in subprocess: {!r}\n{}", e,
                       traceback.format_exc())
          raise
docs: Prints the filename of, or deletes, an OpenXML file depending on whether
      it is corrupt or not.
  
      Args:
          filename: filename to check
          print_good: if ``True``, then prints the filename if the file
              appears good.
          delete_if_bad: if ``True``, then deletes the file if the file
              appears corrupt.