code: def test_get_all_error_on_get_all_inbox(
      monkeypatch: MonkeyPatch,
      notification_service: NotificationService,
      authed_context: AuthedServiceContext,
  ) -> None:
      expected_error = "Failed to get all inbox."
  
      def mock_get_all_inbox_for_verify_key(
          credentials: SyftVerifyKey, verify_key: SyftVerifyKey
      ) -> Err:
          return Err(expected_error)
  
      monkeypatch.setattr(
          notification_service.stash,
          "get_all_inbox_for_verify_key",
          mock_get_all_inbox_for_verify_key,
      )
  
      response = notification_service.get_all(authed_context)
  
      assert isinstance(response, SyftError)
      assert response.message == expected_error
  
imports: from pytest import MonkeyPatch
  from result import Err
  from result import Ok
  from syft.node.credentials import SyftSigningKey
  from syft.node.credentials import SyftVerifyKey
  from syft.service.context import AuthedServiceContext
  from syft.service.notification.notification_service import NotificationService
  from syft.service.notification.notification_stash import NotificationStash
  from syft.service.notification.notifications import CreateNotification
  from syft.service.notification.notifications import Notification
  from syft.service.notification.notifications import NotificationStatus
  from syft.service.response import SyftError
  from syft.service.response import SyftSuccess
  from syft.store.document_store import DocumentStore
  from syft.store.linked_obj import LinkedObject
  from syft.types.datetime import DateTime
  from syft.types.uid import UID
label_desc: Use image node_id 5 for calling a global function with example usage: test_get_all_error_on_get_all_inbox(monkeypatch, notification_service, authed_context) and returns: Err