code: def test_hmm_emission_matrix_raises(hmm, X, priors):
      X = numpy.array(X, dtype="float32")
      priors = numpy.array(priors, dtype="float32")[None, :, :]
      func = hmm._emission_matrix
  
      assert_raises(ValueError, func, X, priors + 1)
      assert_raises(ValueError, func, X, priors - 1)
      assert_raises(ValueError, func, X, priors / 2.0)
      assert_raises(ValueError, func, X, priors[:, :5])
      assert_raises(ValueError, func, X[:, :5], priors)
      assert_raises(ValueError, func, X, priors[:, :, 0])
      assert_raises(ValueError, func, X, priors[:, :, :1])
  
imports: import os
  import numpy
  import torch
  import pytest
  from pomegranate.gmm import GeneralMixtureModel
  from pomegranate.hmm import DenseHMM
  from pomegranate.distributions import Exponential
  from nose.tools import assert_raises
  from numpy.testing import assert_array_equal
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 24 for calling a global function with example usage: test_hmm_emission_matrix_raises(hmm, X, priors) without return types