code: def abort(code, message=None, error=None):
      if error is not None:
          error = traceback.format_exception_only(type(error), error)[
              0
          ].strip()
  
      response = flask.jsonify(
          {"status": code, "error": error, "message": message}
      )
      response.status_code = code
      flask.abort(response)
  
imports: import logging
  import os
  import traceback
  import flask
label_desc: Use image node_id 2 for calling a global function with example usage: abort(code, message, error) without return types