code: def print_error_and_exit(
      message: Text, exit_code: int = 1
  ) -> NoReturn:
      """Print an error message and exit the application.
  
      Args:
          message: The error message to be printed.
          exit_code: The program exit code, defaults to 1.
      """
      print_error(message)
      sys.exit(exit_code)
  
file_path: rasa/rasa/shared/utils/cli.py
imports: import sys
  from typing import Any, Text, NoReturn
  import rasa.shared.utils.io
label_desc: Use image node_id 6 for calling a global function with example usage: print_error_and_exit(message, exit_code) without return types