code: def test_hmm_emission_matrix(hmm, X, priors):
      X = numpy.array([X])
      priors = priors.unsqueeze(0)
  
      y_hat = hmm._emission_matrix(X)
      assert_array_almost_equal(
          y_hat,
          [
              [
                  [-4.3782, -3.6372],
                  [-7.2354, -2.7799],
                  [-21.0449, -4.2237],
                  [-24.8544, -5.2129],
                  [-1.9973, -4.6479],
                  [-42.9497, -7.7994],
                  [-1.5211, -3.9812],
                  [-17.7116, -3.9011],
                  [-1.0449, -3.3146],
                  [-13.9020, -3.4250],
                  [2.7646, -2.3253],
              ]
          ],
          4,
      )
  
      y_hat = hmm._emission_matrix(X, priors=priors)
      assert_array_almost_equal(
          y_hat,
          [
              [
                  [-5.0714, -4.3303],
                  [-7.9285, -3.4730],
                  [-21.7381, -4.9168],
                  [-inf, -5.2129],
                  [-2.6904, -5.3411],
                  [-44.1536, -8.1561],
                  [-2.0319, -4.8975],
                  [-18.4047, -4.5942],
                  [-inf, -3.3146],
                  [-13.9020, -inf],
                  [2.0715, -3.0185],
              ]
          ],
          4,
      )
  
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 23 for calling a global function with example usage: test_hmm_emission_matrix(hmm, X, priors) without return types