code: def set_abort_status(status):
      """Terminate MPI execution environment at Python exit.
  
      Terminate MPI execution environment at Python exit by calling
      ``MPI.COMM_WORLD.Abort(status)``. This function should be called
      within an ``except`` block. Afterwards, exceptions should be
      re-raised.
      """
      # pylint: disable=import-outside-toplevel
      import sys
  
      if isinstance(status, SystemExit):
          status = status.code
      elif isinstance(status, KeyboardInterrupt):
          from _signal import SIGINT
  
          status = SIGINT + 128
      if not isinstance(status, int):
          status = 0 if status is None else 1
      pkg = __spec__.parent
      mpi = sys.modules.get(f"{pkg}.MPI")
      if mpi is not None and status:
          # pylint: disable=protected-access
          mpi._set_abort_status(status)
  
label_desc: Use image node_id 2 for calling a global function with example usage: set_abort_status(status) without return types