code: def test_type_doesnt_matter():
      """
  
      Checks that the type of the columns doesn't affect the result.
  
      """
      outputs = []
      dataset = prince.datasets.load_hearthstone_cards().head(100)
      for col in dataset.columns:
          labels, levels = pd.factorize(dataset[col])
          dataset[col] = labels
      for typ in ("int", "float", "str", "category"):
          dataset = dataset.astype(typ)
          mca = prince.MCA(n_components=2, engine="scipy")
          mca = mca.fit(dataset)
          outputs.append(mca.transform(dataset).abs())
  
      for i in range(len(outputs) - 1):
          np.testing.assert_allclose(outputs[i], outputs[i + 1])
  
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 3 for calling a global function with example usage: test_type_doesnt_matter() without return types