code: def test_score_samples(self):
      log_prob, hmmposteriors = self.hmm.score_samples(
          self.log_frameprob
      )
  
      n_samples, n_components = self.log_frameprob.shape
      assert_allclose(hmmposteriors.sum(axis=1), np.ones(n_samples))
  
      norm = special.logsumexp(self.log_frameprob, axis=1)[
          :, np.newaxis
      ]
      gmmposteriors = np.exp(
          self.log_frameprob - np.tile(norm, (1, n_components))
      )
      assert_allclose(hmmposteriors, gmmposteriors)
  
imports: import numpy
  from numpy.testing import assert_allclose
  import pytest
  from scipy import special
  from hmmlearn.base import BaseHMM, ConvergenceMonitor
  from hmmlearn import _hmmc
label_desc: Use image node_id 2 for calling the TestBaseConsistentWithGMM obj's underlying member method code with example usage: obj.test_score_samples() without return types