code: def test_initialization_raises(probs):
      assert_raises(TypeError, ConditionalCategorical, 0.3)
      assert_raises(
          ValueError, ConditionalCategorical, probs, inertia=-0.4
      )
      assert_raises(
          ValueError, ConditionalCategorical, probs, inertia=1.2
      )
      assert_raises(
          ValueError,
          ConditionalCategorical,
          probs,
          inertia=1.2,
          frozen="true",
      )
      assert_raises(
          ValueError,
          ConditionalCategorical,
          probs,
          inertia=1.2,
          frozen=3,
      )
  
      assert_raises(ValueError, ConditionalCategorical, inertia=-0.4)
      assert_raises(ValueError, ConditionalCategorical, inertia=1.2)
      assert_raises(
          ValueError, ConditionalCategorical, inertia=1.2, frozen="true"
      )
      assert_raises(
          ValueError, ConditionalCategorical, inertia=1.2, frozen=3
      )
  
      # assert_raises(ValueError, ConditionalCategorical, numpy.array(probs)+0.001) FIXME
      # assert_raises(ValueError, ConditionalCategorical, numpy.array(probs)-0.001) FIXME
  
      p = [numpy.array(prob) for prob in probs]
      p[0][0, 0] = -0.03
      assert_raises(ValueError, ConditionalCategorical, p)
  
      p = [numpy.array(prob) for prob in probs]
      p[0][0, 0] = 1.03
      assert_raises(ValueError, ConditionalCategorical, p)
  
imports: import numpy
  import torch
  import pytest
  from pomegranate.distributions import ConditionalCategorical
  from ._utils import _test_initialization_raises_one_parameter
  from ._utils import _test_initialization
  from ._utils import _test_predictions
  from ._utils import _test_raises
  from nose.tools import assert_raises
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 7 for calling a global function with example usage: test_initialization_raises(probs) without return types