code: def test_update_notification_status(
      root_verify_key, document_store
  ) -> None:
      random_uid = UID()
      random_verify_key = SyftSigningKey.generate().verify_key
      test_stash = NotificationStash(store=document_store)
      expected_error = Err(
          f"No notification exists for id: {random_uid}"
      )
  
      response = test_stash.update_notification_status(
          root_verify_key,
          uid=random_uid,
          status=NotificationStatus.READ,
      )
  
      assert response.is_err()
      assert response == expected_error
  
      mock_notification = add_mock_notification(
          root_verify_key,
          test_stash,
          test_verify_key,
          random_verify_key,
      )
  
      assert mock_notification.status == NotificationStatus.UNREAD
  
      response2 = test_stash.update_notification_status(
          root_verify_key,
          uid=mock_notification.id,
          status=NotificationStatus.READ,
      )
  
      assert response2.is_ok()
  
      result = response2.ok()
      assert result.status == NotificationStatus.READ
  
      notification_expiry_status_auto = NotificationExpiryStatus(0)
      with pytest.raises(AttributeError):
          test_stash.pdate_notification_status(
              root_verify_key,
              uid=mock_notification.id,
              status=notification_expiry_status_auto,
          )
  
imports: import pytest
  from pytest import MonkeyPatch
  from result import Err
  from syft.node.credentials import SyftSigningKey
  from syft.node.credentials import SyftVerifyKey
  from syft.service.notification.notification_stash import OrderByCreatedAtTimeStampPartitionKey
  from syft.service.notification.notification_stash import FromUserVerifyKeyPartitionKey
  from syft.service.notification.notification_stash import NotificationStash
  from syft.service.notification.notification_stash import StatusPartitionKey
  from syft.service.notification.notification_stash import ToUserVerifyKeyPartitionKey
  from syft.service.notification.notifications import Notification
  from syft.service.notification.notifications import NotificationExpiryStatus
  from syft.service.notification.notifications import NotificationStatus
  from syft.types.datetime import DateTime
  from syft.types.uid import UID
label_desc: Use image node_id 10 for calling a global function with example usage: test_update_notification_status(root_verify_key, document_store) without return types