pub fn validate_range(start: usize, end: usize, name: &str) -> PyResult<()>
Validate that a range is valid (start < end)