code: def test_FeatureInteractionVisualization__convert_categoricals_to_objects():
      df = pd.DataFrame(
          {
              "a": [1, 2, 3],
              "b": [True, False, True],
              "c": [0.1, 0.2, 0.1],
          }
      )
      assert [
          str(t).replace("64", "").replace("32", "")
          for t in df.dtypes.to_list()
      ] == ["int", "bool", "float"]
      FeatureInteractionVisualization(
          key="abc"
      )._convert_categoricals_to_objects(
          df, "a", "category", "b", "category", "c", "category"
      )
      assert [
          str(t).replace("64", "").replace("32", "")
          for t in df.dtypes.to_list()
      ] == ["object", "object", "object"]
  
imports: from unittest.mock import ANY, MagicMock
  import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  import scipy
  import seaborn
  from hamcrest.library.integration import match_equality
  from pandas import DataFrame
  from sklearn.inspection import PartialDependenceDisplay
  import autogluon.eda.auto
  from autogluon.common.features.types import R_BOOL, R_CATEGORY, R_FLOAT, R_INT, R_OBJECT
  from autogluon.eda import AnalysisState
  from autogluon.eda.visualization import CorrelationSignificanceVisualization, CorrelationVisualization, FeatureInteractionVisualization, PDPInteractions
  from autogluon.eda.visualization.interaction import FeatureDistanceAnalysisVisualization
label_desc: Use image node_id 14 for calling a global function with example usage: test_FeatureInteractionVisualization__convert_categoricals_to_objects() without return types