def METHOD_NAME(self, obj):
    session_service = self.context.get('session_service')
    # Possibly turn all UUIDs into str(UUID)s in SessionService.
    return {str(k): v for k, v in session_service.path_validation_errors_by_uuid.items()}