code: def test_random_state(self):
      model = MC(["a", "b"], [2, 3])
      state = model.random_state()
      vars = [v for v, s in state]
      self.assertEqual(vars, ["a", "b"])
      self.assertGreaterEqual(state[0].state, 0)
      self.assertGreaterEqual(state[1].state, 0)
      self.assertLessEqual(state[0].state, 1)
      self.assertLessEqual(state[1].state, 2)
  
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 31 for calling the TestMarkovChain obj's underlying member method code with example usage: obj.test_random_state() without return types