code: def _test_initialization_raises_two_parameters(
      distribution,
      valid_value1,
      valid_value2,
      min_value1=None,
      min_value2=None,
      max_value1=None,
      max_value2=None,
  ):
      assert_raises(ValueError, distribution, valid_value1)
      assert_raises(ValueError, distribution, None, valid_value2)
      assert_raises(
          ValueError, distribution, valid_value1, valid_value2
      )
      assert_raises(
          ValueError,
          distribution,
          [valid_value1],
          [valid_value2, valid_value2],
      )
      assert_raises(
          ValueError,
          distribution,
          [valid_value1, valid_value1],
          [valid_value2],
      )
  
      assert_raises(
          ValueError,
          distribution,
          [valid_value1, valid_value2],
          inertia=-0.4,
      )
      assert_raises(
          ValueError,
          distribution,
          [valid_value1, valid_value2],
          inertia=1.2,
      )
      assert_raises(
          ValueError,
          distribution,
          [valid_value1, valid_value2],
          inertia=1.2,
          frozen="true",
      )
      assert_raises(
          ValueError,
          distribution,
          [valid_value1, valid_value2],
          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_value1 is not None:
          assert_raises(
              ValueError,
              distribution,
              [valid_value1, min_value1 - 0.1],
              [valid_value2, valid_value2],
          )
  
      if min_value2 is not None:
          assert_raises(
              ValueError,
              distribution,
              [valid_value1, valid_value1],
              [valid_value2, min_value2 - 0.1],
          )
  
      if max_value1 is not None:
          assert_raises(
              ValueError,
              distribution,
              [valid_value1, max_value1 + 0.1],
              [valid_value2, valid_value2],
          )
  
      if max_value2 is not None:
          assert_raises(
              ValueError,
              distribution,
              [valid_value1, valid_value1],
              [valid_value2, max_value2 + 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 3 for calling a global function with example usage: _test_initialization_raises_two_parameters(distribution, valid_value1, valid_value2, min_value1, min_value2, max_value1, max_value2) without return types