code: def test_check_state_bad_var_value(self):
      model = MC(["a"], [2])
      # value of variable >= cardinality
      self.assertRaises(ValueError, model._check_state, [State("a", 3)])
  
imports: import sys
  import unittest
  import numpy
  from mock import call, patch
  from pandas import DataFrame
  from pgmpy.factors.discrete import State
  from pgmpy.models import MarkovChain
label_desc: Use image node_id 11 for calling the TestMarkovChain obj's underlying member method code with example usage: obj.test_check_state_bad_var_value() without return types