code: def setup_class(cls):
      rs = np.random.RandomState()
      rs.seed(1234)
      k = 3
      n = 100
      t = 200
      lam = 2
  
      norm_rng = rs.standard_normal
      e = norm_rng((t, n))
      f = norm_rng((t, k))
      b = rs.standard_gamma(lam, size=(k, n)) / lam
      cls.x = f.dot(b) + e
      cls.x_copy = cls.x + 0.0
      cls.rs = rs
  
      k = 3
      n = 300
      t = 200
      lam = 2
  
      norm_rng = rs.standard_normal
      e = norm_rng((t, n))
      f = norm_rng((t, k))
      b = rs.standard_gamma(lam, size=(k, n)) / lam
      cls.x_wide = f.dot(b) + e
  
imports: from statsmodels.compat.platform import PLATFORM_WIN32
  import warnings
  import numpy
  import pandas
  import pytest
  from numpy.testing import assert_allclose, assert_equal, assert_raises
  from statsmodels.multivariate.pca import PCA, pca
  from statsmodels.multivariate.tests.results.datamlw import data, princomp1, princomp2
  from statsmodels.tools.sm_exceptions import EstimationWarning
label_desc: Use image node_id 1 for calling the TestPCA obj's underlying member method code with example usage: obj.setup_class(cls) without return types