docstr: To check for project request event and create a message for the root user
  
  Args:
      project (Project): Project object
      project_event (ProjectEvent): Project event object
      context (AuthedServiceContext): Context of the node
  
  Returns:
      Union[SyftSuccess, SyftError]: SyftSuccess if message is created else SyftError
code: def check_for_project_request(
      self,
      project: Project,
      project_event: ProjectEvent,
      context: AuthedServiceContext,
  ):
      """To check for project request event and create a message for the root user
  
      Args:
          project (Project): Project object
          project_event (ProjectEvent): Project event object
          context (AuthedServiceContext): Context of the node
  
      Returns:
          Union[SyftSuccess, SyftError]: SyftSuccess if message is created else SyftError
      """
      if (
          isinstance(project_event, ProjectRequest)
          and project_event.linked_request.node_uid == context.node.id
      ):
          link = LinkedObject.with_context(project, context=context)
          message = CreateNotification(
              subject=f"A new request has been added to the Project: {project.name}.",
              from_user_verify_key=context.credentials,
              to_user_verify_key=context.node.verify_key,
              linked_obj=link,
          )
          method = context.node.get_service_method(
              NotificationService.send
          )
          result = method(context=context, notification=message)
          if isinstance(result, SyftError):
              return result
      return SyftSuccess(
          message="Successfully Validated Project Request"
      )
  
imports: from typing import List
  from typing import Union
  from ...serde.serializable import serializable
  from ...store.document_store import DocumentStore
  from ...store.linked_obj import LinkedObject
  from ...types.uid import UID
  from ...util.telemetry import instrument
  from ..context import AuthedServiceContext
  from ..notification.notification_service import NotificationService
  from ..notification.notifications import CreateNotification
  from ..response import SyftError
  from ..response import SyftNotReady
  from ..response import SyftSuccess
  from ..service import AbstractService
  from ..service import SERVICE_TO_TYPES
  from ..service import TYPE_TO_SERVICE
  from ..service import service_method
  from ..user.user_roles import GUEST_ROLE_LEVEL
  from ..user.user_roles import ONLY_DATA_SCIENTIST_ROLE_LEVEL
  from ..user.user_roles import ServiceRole
  from .project import Project
  from .project import ProjectEvent
  from .project import ProjectRequest
  from .project import ProjectSubmit
  from .project import create_project_hash
  from .project_stash import ProjectStash
label_desc: Use image node_id 11 for calling the ProjectService obj's underlying member method code with example usage: obj.check_for_project_request(project, project_event, context) and returns: SyftSuccess, result