code: def test_PDPInteractions__two_way(monkeypatch):
      data = pd.DataFrame(
          {
              "A": ["1", "2", "3", None, None, "6"],
              "B": ["6", "5", None, "3", None, "1"],
          }
      )
  
      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 = "binary"
      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",
              two_way=True,
              sample=123,
          )
          viz.render(state)
  
      ax.ravel.assert_called_once()
      call_subplots.assert_called_with(
          nrows=1, ncols=3, figsize=(12, 3)
      )
      call_from_estimator.assert_called_with(
          ANY,
          ANY,
          ["A", "B", ["A", "B"]],
          ax=["ax1, ax2"],
          target="target",
          subsample=123,
          kind="average",
      )
      wrapper = call_from_estimator.call_args.args[0]
      called_data = call_from_estimator.call_args.args[1]
      assert wrapper.estimator == model
      assert wrapper.estimator_type == "classifier"
      assert called_data.to_dict() == {
          "A": {0: "1", 1: "2", 5: "6"},
          "B": {0: "6", 1: "5", 5: "1"},
      }
  
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 25 for calling a global function with example usage: test_PDPInteractions__two_way(monkeypatch) without return types