class_docstr: Unit test Smart State Class
  TODO: Docstring
class_docstr_tok: ["Unit","test","Smart","State","Class","TODO",":","Docstring"]
docstr: Unit test summarize 1
docstr_tok: ["Unit","test","summarize","1"]
code: def test_summarize_1(self):
      """
      Unit test summarize 1
      """
      state = SmartState()
      contrib_sorted = pd.DataFrame(
          [
              [0.32230754, 0.1550689, 0.10183475, 0.05471339],
              [-0.58547512, -0.37050409, -0.07249285, 0.00171975],
              [-0.48666675, 0.25507156, -0.16968889, 0.0757443],
          ],
          columns=[
              "contribution_0",
              "contribution_1",
              "contribution_2",
              "contribution_3",
          ],
          index=[0, 1, 2],
      )
      var_dict = pd.DataFrame(
          [[1, 0, 2, 3], [1, 0, 3, 2], [1, 0, 2, 3]],
          columns=["feature_0", "feature_1", "feature_2", "feature_3"],
          index=[0, 1, 2],
      )
      x_sorted = pd.DataFrame(
          [
              [1.0, 3.0, 22.0, 1.0],
              [2.0, 1.0, 2.0, 38.0],
              [2.0, 3.0, 26.0, 1.0],
          ],
          columns=["feature_0", "feature_1", "feature_2", "feature_3"],
          index=[0, 1, 2],
      )
      mask = pd.DataFrame(
          [
              [True, True, False, False],
              [True, True, False, False],
              [True, True, False, False],
          ],
          columns=[
              "contribution_0",
              "contribution_1",
              "contribution_2",
              "contribution_3",
          ],
          index=[0, 1, 2],
      )
      columns_dict = {0: "Pclass", 1: "Sex", 2: "Age", 3: "Embarked"}
      features_dict = {
          "Pclass": "Pclass",
          "Sex": "Sex",
          "Age": "Age",
          "Embarked": "Embarked",
      }
      output = state.summarize(
          contrib_sorted,
          var_dict,
          x_sorted,
          mask,
          columns_dict,
          features_dict,
      )
      expected = pd.DataFrame(
          [
              ["Sex", 1.0, 0.32230754, "Pclass", 3.0, 0.1550689],
              ["Sex", 2.0, -0.58547512, "Pclass", 1.0, -0.37050409],
              ["Sex", 2.0, -0.48666675, "Pclass", 3.0, 0.25507156],
          ],
          columns=[
              "feature_1",
              "value_1",
              "contribution_1",
              "feature_2",
              "value_2",
              "contribution_2",
          ],
          index=[0, 1, 2],
          dtype=object,
      )
      assert not pd.testing.assert_frame_equal(expected, output)
  
imports: import unittest
  from unittest.mock import patch, Mock
  import pandas
  import numpy
  from shapash.explainer.smart_state import SmartState
label_desc: Use image node_id 18 for calling the TestSmartState obj's underlying member method code with example usage: obj.test_summarize_1() without return types