class_docstr: Unit test Smart State Class
  TODO: Docstring
class_docstr_tok: ["Unit","test","Smart","State","Class","TODO",":","Docstring"]
docstr: Unit test validate contributions 2
docstr_tok: ["Unit","test","validate","contributions","2"]
code: def test_validate_contributions_2(self):
      """
      Unit test validate contributions 2
      """
      state = SmartState()
      contributions = np.array([[2, 1], [8, 4]])
      x_init = pd.DataFrame(
          [[1, 2], [3, 4]],
          columns=["Col1", "Col2"],
          index=["Id1", "Id2"],
      )
      expected_output = pd.DataFrame(
          [[2, 1], [8, 4]],
          columns=["Col1", "Col2"],
          index=["Id1", "Id2"],
      )
      output = state.validate_contributions(contributions, x_init)
      assert not pd.testing.assert_frame_equal(expected_output, 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 2 for calling the TestSmartState obj's underlying member method code with example usage: obj.test_validate_contributions_2() without return types