code: def test_brsa_rudimentary(seeded_rng):
      """this test is super loose"""
  
      # this is Mingbo's synth example from the paper
      U = gen_U_nips2016_example()
  
      n_T = 150
      n_V = 250
      n_nureg = 5
  
      spacecov_true = np.eye(n_V)
  
      timecov_true = np.diag(np.abs(norm.rvs(size=(n_T))))
  
      tr, sz = gen_brsa_data_matnorm_model(
          U,
          n_T=n_T,
          n_V=n_V,
          n_nureg=n_nureg,
          space_cov=spacecov_true,
          time_cov=timecov_true,
      )
  
      spacecov_model = CovIdentity(size=n_V)
      timecov_model = CovDiagonal(size=n_T)
  
      model_matnorm = MNRSA(
          time_cov=timecov_model, space_cov=spacecov_model
      )
  
      model_matnorm.fit(tr["Y"], tr["X"], naive_init=False)
  
      RMSE = np.mean((model_matnorm.C_ - cov2corr(tr["U"])) ** 2) ** 0.5
  
      assert RMSE < 0.1
  
      model_matnorm = MNRSA(
          time_cov=timecov_model, space_cov=spacecov_model
      )
  
      model_matnorm.fit(tr["Y"], tr["X"], naive_init=True)
  
      RMSE = np.mean((model_matnorm.C_ - cov2corr(tr["U"])) ** 2) ** 0.5
  
      assert RMSE < 0.1
  
file_path: brainiak/tests/matnormal/test_matnormal_rsa.py
imports: from brainiak.matnormal.mnrsa import MNRSA
  from brainiak.utils.utils import cov2corr
  from brainiak.matnormal.covs import CovIdentity, CovDiagonal
  from scipy.stats import norm
  from brainiak.matnormal.utils import rmn
  import numpy
label_desc: Use image node_id 3 for calling a global function with example usage: test_brsa_rudimentary(seeded_rng) without return types