code: def test_gmm_emission_matrix(gmm, X, priors):
      y_hat = gmm._emission_matrix(X)
      assert_array_almost_equal(
          y_hat,
          [
              [-4.7349, -4.8411],
              [-7.5921, -3.9838],
              [-21.4016, -5.4276],
              [-25.2111, -6.4169],
              [-2.3540, -5.8519],
              [-43.3063, -9.0034],
              [-1.8778, -5.1852],
              [-18.0682, -5.1051],
              [-1.4016, -4.5185],
              [-14.2587, -4.6290],
              [2.4079, -3.5293],
          ],
          4,
      )
  
      y_hat = gmm._emission_matrix(X, priors=priors)
      assert_array_almost_equal(
          y_hat,
          [
              [-5.4281, -5.5343],
              [-8.2852, -4.6770],
              [-22.0947, -6.1208],
              [-inf, -6.4169],
              [-3.0471, -6.5450],
              [-44.5103, -9.3601],
              [-2.3886, -6.1015],
              [-18.7614, -5.7982],
              [-inf, -4.5185],
              [-14.2587, -inf],
              [1.7148, -4.2224],
          ],
          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 6 for calling a global function with example usage: test_gmm_emission_matrix(gmm, X, priors) without return types