pub fn array_shape_pattern(expected_dims: &[usize]) -> PatternGuardRule
Pattern guard for array shape validation