docs: def callback(self, callback, *args, **kwds):
          """Registers an arbitrary callback and arguments.
          Cannot suppress exceptions.
          """
          _exit_wrapper = self._create_cb_wrapper(callback, *args, **kwds)
  
          # We changed the signature, so using @wraps is not appropriate, but
          # setting __wrapped__ may still help with introspection.
          _exit_wrapper.__wrapped__ = callback
          self._push_exit_callback(_exit_wrapper)
          return callback