code: def _test_initialization_raises_one_parameter(
      distribution, valid_value, min_value=None, max_value=None
  ):
      assert_raises(ValueError, distribution, valid_value)
      assert_raises(
          ValueError, distribution, [valid_value], inertia=-0.4
      )
      assert_raises(
          ValueError, distribution, [valid_value], inertia=1.2
      )
      assert_raises(
          ValueError,
          distribution,
          [valid_value],
          inertia=1.2,
          frozen="true",
      )
      assert_raises(
          ValueError, distribution, [valid_value], inertia=1.2, frozen=3
      )
  
      assert_raises(ValueError, distribution, inertia=-0.4)
      assert_raises(ValueError, distribution, inertia=1.2)
      assert_raises(
          ValueError, distribution, inertia=1.2, frozen="true"
      )
      assert_raises(ValueError, distribution, inertia=1.2, frozen=3)
  
      if min_value is not None:
          assert_raises(
              ValueError, distribution, [valid_value, min_value - 0.1]
          )
  
      if max_value is not None:
          assert_raises(
              ValueError, distribution, [valid_value, max_value + 0.1]
          )
  
file_path: pomegranate/tests/distributions/_utils.py
imports: import numpy
  import torch
  from nose.tools import assert_raises
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 2 for calling a global function with example usage: _test_initialization_raises_one_parameter(distribution, valid_value, min_value, max_value) without return types