class_docstr: Base class for all PySyft exceptions.
code: def raise_with_context(self, context: NodeServiceContext):
      self.context = context
      return self
  
file_path: PySyft/packages/syft/src/syft/exceptions/exception.py
imports: from typing import List
  from typing import Optional
  from ..service.context import NodeServiceContext
  from ..service.response import SyftError
  from ..service.user.user_roles import ServiceRole
label_desc: Use image node_id 2 for calling the PySyftException obj's underlying member method code with example usage: obj.raise_with_context(context) and returns: self