code: def test_orthogonal_procrustes_array_conversion():
      np.random.seed(1234)
      for m, n in ((6, 4), (4, 4), (4, 6)):
          A_arr = np.random.randn(m, n)
          B_arr = np.random.randn(m, n)
          As = (A_arr, A_arr.tolist(), matrix(A_arr))
          Bs = (B_arr, B_arr.tolist(), matrix(B_arr))
          R_arr, s = orthogonal_procrustes(A_arr, B_arr)
          AR_arr = A_arr.dot(R_arr)
          for A, B in product(As, Bs):
              R, s = orthogonal_procrustes(A, B)
              AR = A_arr.dot(R)
              assert_allclose(AR, AR_arr)
  
file_path: catboost/contrib/python/scipy/py2/scipy/linalg/tests/test_procrustes.py
imports: from itertools import product, permutations
  import numpy
  from numpy.testing import assert_array_less, assert_allclose
  from pytest import raises
  from scipy.linalg import inv, eigh, norm
  from scipy.linalg import orthogonal_procrustes
  from scipy.sparse.sputils import matrix
label_desc: Use image node_id 6 for calling a global function with example usage: test_orthogonal_procrustes_array_conversion() without return types