def METHOD_NAME(
    self, context: NodeServiceContext, obj: Any
) -> Union[SyftSuccess, SyftError]:
    if isinstance(context, AuthedServiceContext):
        credentials = context.credentials
    elif isinstance(context, ChangeContext):
        credentials = context.approving_user_credentials
    else:
        return SyftError(message="wrong context passed")
    result = context.node.get_service(self.service_type).stash.update(
        credentials, obj
    )
    if result.is_ok():
        return result