code: def test_get_all_inbox_for_verify_key(
      root_verify_key, document_store
  ) -> None:
      random_signing_key = SyftSigningKey.generate()
      random_verify_key = random_signing_key.verify_key
      test_stash = NotificationStash(store=document_store)
  
      response = test_stash.get_all_inbox_for_verify_key(
          root_verify_key, random_verify_key
      )
  
      assert response.is_ok()
  
      result = response.ok()
      assert len(result) == 0
  
      # list of mock notifications
      notification_list = []
  
      for _ in range(5):
          mock_notification = add_mock_notification(
              root_verify_key,
              test_stash,
              test_verify_key,
              random_verify_key,
          )
          notification_list.append(mock_notification)
  
      # returned list of notifications from stash that's sorted by created_at
      response2 = test_stash.get_all_inbox_for_verify_key(
          root_verify_key, random_verify_key
      )
  
      assert response2.is_ok()
  
      result = response2.ok()
      assert len(response2.value) == 5
  
      for notification in notification_list:
          # check if all notifications are present in the result
          assert notification in result
  
      with pytest.raises(AttributeError):
          test_stash.get_all_inbox_for_verify_key(
              root_verify_key, random_signing_key
          )
  
      # assert that the returned list of notifications is sorted by created_at
      sorted_notification_list = sorted(
          result, key=lambda x: x.created_at
      )
      assert result == sorted_notification_list
  
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 6 for calling a global function with example usage: test_get_all_inbox_for_verify_key(root_verify_key, document_store) without return types