code: def test_contrib_summary_df(
      precalculated_catboost_regression_explainer,
  ):
      assert isinstance(
          precalculated_catboost_regression_explainer.get_contrib_summary_df(
              0
          ),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_catboost_regression_explainer.get_contrib_summary_df(
              0, topx=3
          ),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_catboost_regression_explainer.get_contrib_summary_df(
              0, round=3
          ),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_catboost_regression_explainer.get_contrib_summary_df(
              0, sort="high-to-low"
          ),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_catboost_regression_explainer.get_contrib_summary_df(
              0, sort="low-to-high"
          ),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_catboost_regression_explainer.get_contrib_summary_df(
              0, sort="importance"
          ),
          pd.DataFrame,
      )
      assert isinstance(
          precalculated_catboost_regression_explainer.get_contrib_summary_df(
              X_row=precalculated_catboost_regression_explainer.X.iloc[
                  [0]
              ]
          ),
          pd.DataFrame,
      )
  
imports: import pandas
  import numpy
  from pandas.api.types import is_categorical_dtype, is_numeric_dtype
  import plotly.graph_objs
label_desc: Use image node_id 17 for calling a global function with example usage: test_contrib_summary_df(precalculated_catboost_regression_explainer) without return types