docstr: creates inputs
docstr_tok: ["creates","inputs"]
code: def setup_method(self):
      """creates inputs"""
      # an L
      self.data1 = np.array([[1, 3], [1, 2], [1, 1], [2, 1]], "d")
  
      # a larger, shifted, mirrored L
      self.data2 = np.array([[4, -2], [4, -4], [4, -6], [2, -6]], "d")
  
      # an L shifted up 1, right 1, and with point 4 shifted an extra .5
      # to the right
      # pointwise distance disparity with data1: 3*(2) + (1 + 1.5^2)
      self.data3 = np.array([[2, 4], [2, 3], [2, 2], [3, 2.5]], "d")
  
      # data4, data5 are standardized (trace(A*A') = 1).
      # procrustes should return an identical copy if they are used
      # as the first matrix argument.
      shiftangle = np.pi / 8
      self.data4 = np.array(
          [[1, 0], [0, 1], [-1, 0], [0, -1]], "d"
      ) / np.sqrt(4)
      self.data5 = np.array(
          [
              [np.cos(shiftangle), np.sin(shiftangle)],
              [
                  np.cos(np.pi / 2 - shiftangle),
                  np.sin(np.pi / 2 - shiftangle),
              ],
              [-np.cos(shiftangle), -np.sin(shiftangle)],
              [
                  -np.cos(np.pi / 2 - shiftangle),
                  -np.sin(np.pi / 2 - shiftangle),
              ],
          ],
          "d",
      ) / np.sqrt(4)
  
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 1 for calling the TestProcrustes obj's underlying member method code with example usage: obj.setup_method() without return types