code: def test_resolve_object_error_on_resolve_link(
      monkeypatch: MonkeyPatch,
      authed_context: AuthedServiceContext,
      linked_object: LinkedObject,
      document_store: DocumentStore,
      notification_service: NotificationService,
  ) -> None:
      test_notification_service = NotificationService(document_store)
      expected_error = "Failed to resolve link."
  
      def mock_get_service(
          linked_obj: LinkedObject,
      ) -> NotificationService:
          return test_notification_service
  
      monkeypatch.setattr(
          authed_context.node,
          "get_service",
          mock_get_service,
      )
  
      def mock_resolve_link(
          context: AuthedServiceContext, linked_obj: LinkedObject
      ) -> Err:
          return Err(expected_error)
  
      monkeypatch.setattr(
          test_notification_service,
          "resolve_link",
          mock_resolve_link,
      )
  
      response = test_notification_service.resolve_object(
          authed_context, linked_object
      )
  
      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 19 for calling a global function with example usage: test_resolve_object_error_on_resolve_link(monkeypatch, authed_context, linked_object, document_store, notification_service) and returns: test_notification_service, Err