if (L != layout_type::dynamic && !do_strides_match(m_shape, m_strides, L, 1))
{
throwstd::runtime_error("pyarray: passing container with wrong strides for static layout. If you are trying to pass a view, set the pytensor layout template parameter to `layout_type::dynamic`, or `layout_type::column_major` for col major.");