code: def validate_and_exit(expected_out_status=0, **kwargs):
      if all([arg == expected_out_status for arg in kwargs.values()]):
          # Expected status, OK
          sys.exit(0)
      else:
          # Failure
          print_console_centered("Summary Results")
          fail_count = 0
          for component, exit_status in kwargs.items():
              if exit_status != expected_out_status:
                  print(f"{component} failed.")
                  fail_count += 1
          print_console_centered(
              f"{len(kwargs)-fail_count} success, {fail_count} failure"
          )
          sys.exit(1)
  
imports: import os
  import shutil
  import sys
label_desc: Use image node_id 2 for calling a global function with example usage: validate_and_exit(expected_out_status) without return types