code: def test_get_all_for_verify_key(
      root_verify_key, document_store
  ) -> None:
      random_signing_key = SyftSigningKey.generate()
      random_verify_key = random_signing_key.verify_key
      query_key = FromUserVerifyKeyPartitionKey.with_obj(
          test_verify_key
      )
      test_stash = NotificationStash(store=document_store)
  
      response = test_stash.get_all_for_verify_key(
          root_verify_key, random_verify_key, query_key
      )
  
      assert response.is_ok()
  
      result = response.ok()
      assert len(result) == 0
  
      mock_notification = add_mock_notification(
          root_verify_key,
          test_stash,
          test_verify_key,
          random_verify_key,
      )
  
      query_key2 = FromUserVerifyKeyPartitionKey.with_obj(
          mock_notification.from_user_verify_key
      )
      response_from_verify_key = test_stash.get_all_for_verify_key(
          root_verify_key,
          mock_notification.from_user_verify_key,
          query_key2,
      )
      assert response_from_verify_key.is_ok()
  
      result = response_from_verify_key.ok()
      assert len(result) == 1
  
      assert result[0] == mock_notification
  
      response_from_verify_key_string = (
          test_stash.get_all_for_verify_key(
              root_verify_key, test_verify_key_string, query_key2
          )
      )
  
      assert response_from_verify_key_string.is_ok()
  
      result = response_from_verify_key_string.ok()
      assert len(result) == 1
  
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 8 for calling a global function with example usage: test_get_all_for_verify_key(root_verify_key, document_store) without return types