nit: but maybe put this comment above the assert line rather than the function?