code: def str2matrix(A):
      A = A.lstrip().rstrip().split("\n")
      A = np.array([row.split() for row in A]).astype(float)
      return A
  
imports: import unittest
  import numpy
  from statsmodels.multivariate.factor_rotation._wrappers import rotate_factors
  from statsmodels.multivariate.factor_rotation._gpa_rotation import ff_partial_target, vgQ_partial_target, ff_target, vgQ_target, CF_objective, orthomax_objective, oblimin_objective, GPA
  from statsmodels.multivariate.factor_rotation._analytic_rotation import target_rotation
label_desc: Use image node_id 1 for calling the TestGPARotation obj's underlying member method code with example usage: obj.str2matrix(A) and returns: A