code: def test_col_cos2(self):
      if self.sup_cols:
          F = load_df_from_R("ca$var$cos2")
          if self.sup_cols:
              F = pd.concat((F, load_df_from_R("ca$quali.sup$cos2")))
          P = self.ca.column_cosine_similarities(self.dataset)
          np.testing.assert_allclose(F, P)
      else:
          super().test_col_cos2()
  
file_path: prince/tests/test_mca.py
imports: from __future__ import annotations
  import tempfile
  import numpy
  import pandas
  import pytest
  from rpy2.robjects import r
  import prince
  from tests import load_df_from_R
  from tests.test_ca import TestCA
label_desc: Use image node_id 4 for calling the TestMCA obj's underlying member method code with example usage: obj.test_col_cos2() without return types