code: def get_all_user_policy(
      self, context: AuthedServiceContext
  ) -> Union[List[UserPolicy], SyftError]:
      result = self.stash.get_all(context.credentials)
      if result.is_ok():
          return result.ok()
      return SyftError(message=result.err())
  
file_path: PySyft/packages/syft/src/syft/service/policy/policy_service.py
imports: from typing import List
  from typing import Union
  from ...serde.serializable import serializable
  from ...store.document_store import DocumentStore
  from ...types.uid import UID
  from ..context import AuthedServiceContext
  from ..response import SyftError
  from ..response import SyftSuccess
  from ..service import AbstractService
  from ..service import TYPE_TO_SERVICE
  from ..service import service_method
  from .policy import SubmitUserPolicy
  from .policy import UserPolicy
  from .user_policy_stash import UserPolicyStash
label_desc: Use image node_id 2 for calling the PolicyService obj's underlying member method code with example usage: obj.get_all_user_policy(context) and returns: SyftError, result