code: def test_group_eigenvalues(self):
      for i, group in enumerate(self.groups, start=1):
          F = load_df_from_R(f"mfa$separate.analyses$Gr{i}$eig")[
              : self.mfa.n_components
          ]
          P = self.mfa[group]._eigenvalues_summary
          np.testing.assert_allclose(F["eigenvalue"], P["eigenvalue"])
          np.testing.assert_allclose(
              F["percentage of variance"], P["% of variance"]
          )
          np.testing.assert_allclose(
              F["cumulative percentage of variance"],
              P["% of variance (cumulative)"],
          )
  
file_path: prince/tests/test_mfa.py
imports: from __future__ import annotations
  import math
  import tempfile
  import numpy
  import pytest
  import rpy2.robjects
  import sklearn.utils.estimator_checks
  import sklearn.utils.validation
  from rpy2.robjects import r
  import prince
  from tests import load_df_from_R
label_desc: Use image node_id 5 for calling the TestMFA obj's underlying member method code with example usage: obj.test_group_eigenvalues() without return types