class_docstr: Unit test Smart State Class
  TODO: Docstring
class_docstr_tok: ["Unit","test","Smart","State","Class","TODO",":","Docstring"]
docstr: Unit test check contributions 4
docstr_tok: ["Unit","test","check","contributions","4"]
code: def test_check_contributions_4(self):
      """
      Unit test check contributions 4
      """
      state = SmartState()
      contributions = pd.DataFrame(
          [[-0.2, 0.1], [0.8, -0.4]],
          columns=["col_1", "col_2"],
          index=["row_1", "row_2"],
      )
      x_init = pd.DataFrame(
          [[1, 2], [3, 4]],
          columns=["col_1", "col_2"],
          index=["row_1", "row_2"],
      )
      assert state.check_contributions(contributions, x_init)
  
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 7 for calling the TestSmartState obj's underlying member method code with example usage: obj.test_check_contributions_4() without return types