pub fn validate_same_length<T, U>( items1: &[T], items2: &[U], name1: &str, name2: &str, ) -> Result<(), OCRError>
Validates that two collections have the same length.