code: def test_PDPInteractions(monkeypatch):
      ax = MagicMock()
      ax.ravel = MagicMock(return_value=["ax1, ax2"])
      call_subplots = MagicMock(return_value=("fig", ax))
      call_from_estimator = MagicMock()
      model = MagicMock()
      model.problem_type = "regression"
      state = AnalysisState(pdp_data="data", model=model)
      with monkeypatch.context() as m:
          m.setattr(plt, "subplots", call_subplots)
          m.setattr(plt, "tight_layout", MagicMock())
          m.setattr(plt, "show", MagicMock())
          m.setattr(
              PartialDependenceDisplay,
              "from_estimator",
              call_from_estimator,
          )
          viz = PDPInteractions(
              features=["A", "B"], target="target", sample=123
          )
          viz.render(state)
  
      ax.ravel.assert_called_once()
      call_subplots.assert_called_with(
          nrows=1, ncols=2, figsize=(12, 3)
      )
      call_from_estimator.assert_called_with(
          ANY,
          "data",
          ["A", "B"],
          ax=["ax1, ax2"],
          target="target",
          subsample=123,
          pd_line_kw={"color": "red"},
          ice_lines_kw={"color": "blue"},
          kind="both",
      )
      wrapper = call_from_estimator.call_args.args[0]
      assert wrapper.estimator == model
      assert wrapper.estimator_type == "regressor"
  
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 24 for calling a global function with example usage: test_PDPInteractions(monkeypatch) without return types