code: def test_emission_matrix(model, X):
      e = model._emission_matrix(X)
  
      assert_array_almost_equal(
          e,
          [
              [-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,
      )
      assert_array_almost_equal(
          e[:, 0], model.distributions[0].log_probability(X) - 0.3567, 4
      )
      assert_array_almost_equal(
          e[:, 1], model.distributions[1].log_probability(X) - 1.2040, 4
      )
  
imports: import os
  import numpy
  import torch
  import pytest
  from pomegranate.gmm import GeneralMixtureModel
  from pomegranate.distributions import Exponential
  from .distributions._utils import _test_initialization_raises_one_parameter
  from .distributions._utils import _test_initialization
  from .distributions._utils import _test_predictions
  from .distributions._utils import _test_efd_from_summaries
  from .distributions._utils import _test_raises
  from nose.tools import assert_raises
  from numpy.testing import assert_array_almost_equal
label_desc: Use image node_id 10 for calling a global function with example usage: test_emission_matrix(model, X) without return types