pub fn check_shape( name: &str, shape: &[usize], limits: &Limits, ) -> Result<usize, Error>
Validates a declared shape against the limits and returns its element count.