code: def test_initialization_raises():
      d = [Categorical(), ConditionalCategorical()]
  
      assert_raises(ValueError, MarkovChain)
      assert_raises(ValueError, MarkovChain, d, [0.2, 0.2, 0.6])
      assert_raises(ValueError, MarkovChain, d, [0.2, 1.0])
      assert_raises(ValueError, MarkovChain, d, [-0.2, 1.2])
  
      assert_raises(ValueError, MarkovChain, Categorical)
      assert_raises(ValueError, MarkovChain, d, inertia=-0.4)
      assert_raises(ValueError, MarkovChain, d, inertia=1.2)
      assert_raises(
          ValueError, MarkovChain, d, inertia=1.2, frozen="true"
      )
      assert_raises(ValueError, MarkovChain, d, inertia=1.2, frozen=3)
  
imports: import numpy
  import torch
  import pytest
  from pomegranate.markov_chain import MarkovChain
  from pomegranate.distributions import Categorical
  from pomegranate.distributions import ConditionalCategorical
  from .distributions._utils import _test_initialization_raises_one_parameter
  from .distributions._utils import _test_initialization
  from .distributions._utils import _test_predictions
  from .distributions._utils import _test_efd_from_summaries
  from .distributions._utils import _test_raises
  from nose.tools import assert_raises
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_initialization_raises() without return types