class_docstr: Unit test Smart State Class
  TODO: Docstring
class_docstr_tok: ["Unit","test","Smart","State","Class","TODO",":","Docstring"]
docstr: Unit test assign contributions 1
docstr_tok: ["Unit","test","assign","contributions","1"]
code: def test_assign_contributions_1(self):
      """
      Unit test assign contributions 1
      """
      state = SmartState()
      output = state.assign_contributions([1, 2, 3])
      expected = {"contrib_sorted": 1, "x_sorted": 2, "var_dict": 3}
      self.assertDictEqual(output, expected)
  
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 9 for calling the TestSmartState obj's underlying member method code with example usage: obj.test_assign_contributions_1() without return types