code: def test_row_cosine_similarities(self):
      F = load_df_from_R("pca$ind$cos2")
      if self.sup_rows:
          F = pd.concat((F, load_df_from_R("pca$ind.sup$cos2")))
      P = self.pca.row_cosine_similarities(self.dataset)
      np.testing.assert_allclose(F, P)
  
imports: from __future__ import annotations
  import math
  import numpy
  import pandas
  import pytest
  import rpy2.robjects
  import sklearn.utils.estimator_checks
  import sklearn.utils.validation
  from sklearn import decomposition, pipeline, preprocessing
  import prince
  from tests import load_df_from_R
label_desc: Use image node_id 7 for calling the TestPCA obj's underlying member method code with example usage: obj.test_row_cosine_similarities() without return types