code: def test_gmm_probability(gmm, X, priors):
      y_hat = gmm.probability(X)
      assert_array_almost_equal(
          y_hat,
          numpy.exp(
              [
                  -4.0935,
                  -3.9571,
                  -5.4276,
                  -6.4169,
                  -2.3241,
                  -9.0034,
                  -1.8418,
                  -5.1051,
                  -1.3582,
                  -4.6289,
                  2.4106,
              ]
          ),
          3,
      )
  
      y_hat = gmm.probability(X, priors=priors)
      assert_array_almost_equal(
          y_hat,
          [
              8.3407e-03,
              9.5592e-03,
              2.1967e-03,
              1.6337e-03,
              4.8933e-02,
              8.6094e-05,
              9.3998e-02,
              3.0330e-03,
              1.0905e-02,
              6.4197e-07,
              5.5702e00,
          ],
          3,
      )
  
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 8 for calling a global function with example usage: test_gmm_probability(gmm, X, priors) without return types