fn sanitize_view_map<TYPES: NodeType>( view_map: &ViewMap<TYPES>, ) -> Result<ViewMapSanitized<TYPES>>