code: def test_add_transition_model_bad_type(self):
      model = MC()
      grade_tm_matrix_bad = [[0.1, 0.5, 0.4], [0.2, 0.2, 0.6], "abc"]
      # if transition_model is not a dict or np.array
      self.assertRaises(
          ValueError, model.add_transition_model, "var", 123
      )
      self.assertRaises(
          ValueError,
          model.add_transition_model,
          "var",
          grade_tm_matrix_bad,
      )
  
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 16 for calling the TestMarkovChain obj's underlying member method code with example usage: obj.test_add_transition_model_bad_type() without return types