code: def test_procrustes(self):
      # tests procrustes' ability to match two matrices.
      #
      # the second matrix is a rotated, shifted, scaled, and mirrored version
      # of the first, in two dimensions only
      #
      # can shift, mirror, and scale an 'L'?
      a, b, disparity = procrustes(self.data1, self.data2)
      assert_allclose(b, a)
      assert_almost_equal(disparity, 0.0)
  
      # if first mtx is standardized, leaves first mtx unchanged?
      m4, m5, disp45 = procrustes(self.data4, self.data5)
      assert_equal(m4, self.data4)
  
      # at worst, data3 is an 'L' with one point off by .5
      m1, m3, disp13 = procrustes(self.data1, self.data3)
  
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 2 for calling the TestProcrustes obj's underlying member method code with example usage: obj.test_procrustes() without return types