code: def test_plot_shap_interactions(
      precalculated_rf_regression_explainer,
  ):
      fig = precalculated_rf_regression_explainer.plot_contributions(0)
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_contributions(
          0, topx=3
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_contributions(
          0, cutoff=0.05
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_contributions(
          0, sort="high-to-low"
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_contributions(
          0, sort="low-to-high"
      )
      assert isinstance(fig, go.Figure)
  
      fig = precalculated_rf_regression_explainer.plot_contributions(
          0, sort="importance"
      )
      assert isinstance(fig, go.Figure)
  
imports: import pandas
  import numpy
  from pandas.api.types import is_categorical_dtype, is_numeric_dtype
  import plotly.graph_objects
label_desc: Use image node_id 30 for calling a global function with example usage: test_plot_shap_interactions(precalculated_rf_regression_explainer) without return types