code: def format_output(func):
      return func
      
  
      @wraps(func)
      def wrapper(*args, **kwargs):
          try:
              response = func(*args, **kwargs)
          except Exception as error:
              print(colored(error, 'red'), file=sys.stderr)
              sys.exit(1)
          else:
              print(response)
              sys.exit(0)
      return wrapper
docs: Format output.