class_docstr: Unit test Smart State Class
  TODO: Docstring
class_docstr_tok: ["Unit","test","Smart","State","Class","TODO",":","Docstring"]
docstr: Unit test assign contributions 2
docstr_tok: ["Unit","test","assign","contributions","2"]
code: def test_assign_contributions_2(self):
      """
      Unit test assign contributions 2
      """
      state = SmartState()
      ranked = [1, 2]
      with self.assertRaises(ValueError):
          state.assign_contributions(ranked)
  
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 10 for calling the TestSmartState obj's underlying member method code with example usage: obj.test_assign_contributions_2() without return types