code: def test_RegressionEvaluation(monkeypatch):
      state = AnalysisState(
          {
              "model_evaluation": {
                  "problem_type": "regression",
                  "y_true_train": pd.Series([0, 1, 0, 0]),
                  "y_pred_train": pd.Series([1, 0, 1, 1]),
                  "y_true_val": pd.Series([0, 1, 0, 1]),
                  "y_pred_val": pd.Series([1, 0, 1, 0]),
              }
          }
      )
  
      call_plt_subplots = MagicMock(return_value=("fig", "ax"))
      call_plt_show = MagicMock()
      call_residuals_plot = MagicMock()
      call_render_markdown = MagicMock()
      with monkeypatch.context() as m:
          m.setattr(plt, "subplots", call_plt_subplots)
          m.setattr(plt, "show", call_plt_show)
          m.setattr(
              "autogluon.eda.visualization.model.residuals_plot",
              call_residuals_plot,
          )
          viz = RegressionEvaluation(
              headers=True, fig_args=dict(a=1, b=2), some_kwarg=123
          )
          viz.residuals_plot = call_residuals_plot
          viz.render_markdown = call_render_markdown
          viz.render(state)
      call_plt_subplots.assert_called_with(figsize=(12, 6), a=1, b=2)
      call_plt_show.assert_called_with("fig")
      call_residuals_plot.assert_called_with(
          ANY,
          state.model_evaluation.y_pred_train,
          state.model_evaluation.y_true_train,
          state.model_evaluation.y_pred_val,
          state.model_evaluation.y_true_val,
          show=False,
          ax="ax",
          hist=False,
          qqplot=True,
      )
      call_render_markdown.assert_called_with(
          "**Prediction vs Target**"
      )
  
file_path: autogluon/eda/tests/unittests/visualization/test_model.py
imports: from unittest.mock import ANY, MagicMock
  import matplotlib.pyplot
  import numpy
  import pandas
  import pytest
  import seaborn
  from autogluon.eda import AnalysisState
  from autogluon.eda.visualization import ConfusionMatrix, FeatureImportance, ModelLeaderboard, RegressionEvaluation
label_desc: Use image node_id 3 for calling a global function with example usage: test_RegressionEvaluation(monkeypatch) without return types