pub fn py_shape_to_vec(obj: &Bound<'_, PyAny>) -> PyResult<Vec<usize>>
Convert Python shape tuple to Rust Vec<usize>
Vec<usize>