code: def test_gmm_log_probability(gmm, X, priors):
      y_hat = gmm.log_probability(X)
      assert_array_almost_equal(
          y_hat,
          [
              -4.0935,
              -3.9571,
              -5.4276,
              -6.4169,
              -2.3241,
              -9.0034,
              -1.8418,
              -5.1051,
              -1.3582,
              -4.6289,
              2.4106,
          ],
          4,
      )
  
      y_hat = gmm.log_probability(X, priors=priors)
      assert_array_almost_equal(
          y_hat,
          [
              -4.7866,
              -4.6503,
              -6.1208,
              -6.4169,
              -3.0173,
              -9.3601,
              -2.3645,
              -5.7982,
              -4.5185,
              -14.2587,
              1.7174,
          ],
          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 10 for calling a global function with example usage: test_gmm_log_probability(gmm, X, priors) without return types