pub(crate) fn compute_array_dims( arr: Option<ArrayRef>, ) -> Result<Option<Vec<Option<u64>>>>
Returns the length of each array dimension