code: def test_svd_incompatible_dimensions(ndim):
      with pytest.raises(ValueError, match="Array must be 2D"):
          x = da.random.default_rng().random(
              (10,) * ndim, chunks=(-1,) * ndim
          )
          da.linalg.svd(x)
  
imports: from __future__ import annotations
  import sys
  import pytest
  import numpy
  import scipy.linalg
  from packaging.version import parse
  import dask.array
  from dask.array.linalg import qr, sfqr, svd, svd_compressed, tsqr
  from dask.array.numpy_compat import _np_version
  from dask.array.utils import assert_eq, same_keys, svd_flip
label_desc: Use image node_id 35 for calling a global function with example usage: test_svd_incompatible_dimensions(ndim) without return types