code: def test_procrustes_bad_number_of_dimensions(self):
      # fewer dimensions in one dataset
      assert_raises(
          ValueError,
          procrustes,
          np.array([1, 1, 2, 3, 5, 8]),
          np.array([[1, 2], [3, 4]]),
      )
  
      # fewer dimensions in both datasets
      assert_raises(
          ValueError,
          procrustes,
          np.array([1, 1, 2, 3, 5, 8]),
          np.array([1, 1, 2, 3, 5, 8]),
      )
  
      # zero dimensions
      assert_raises(ValueError, procrustes, np.array(7), np.array(11))
  
      # extra dimensions
      assert_raises(
          ValueError,
          procrustes,
          np.array([[[11], [7]]]),
          np.array([[[5, 13]]]),
      )
  
file_path: scipy/scipy/spatial/tests/test__procrustes.py
imports: import numpy
  from numpy.testing import assert_allclose, assert_equal, assert_almost_equal
  from pytest import raises
  from scipy.spatial import procrustes
label_desc: Use image node_id 7 for calling the TestProcrustes obj's underlying member method code with example usage: obj.test_procrustes_bad_number_of_dimensions() without return types