code: def test_plot_residuals(precalculated_rf_regression_explainer):
      fig = precalculated_rf_regression_explainer.plot_residuals()
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_residuals(
          vs_actual=True
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_residuals(
          residuals="ratio"
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_residuals(
          residuals="log-ratio"
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_residuals(
          residuals="log-ratio", vs_actual=True
      )
      assert isinstance(fig, go.Figure)
  
file_path: explainerdashboard/tests/test_regression_explainer.py
imports: import pandas
  import plotly.graph_objects
label_desc: Use image node_id 4 for calling a global function with example usage: test_plot_residuals(precalculated_rf_regression_explainer) without return types