code: def test_viterbi_binary_example_init():
      # 0 stays 0,
      # 1 is uninformative
      transition = np.asarray([[0.9, 0.1], [0.5, 0.5]])
  
      # Initial state distribution
      p_init = np.asarray([0.5, 0.5])
  
      p_binary = np.asarray([0.25, 0.5, 0.75, 0.1, 0.1, 0.8, 0.9])
  
      p_full = np.vstack((1 - p_binary, p_binary))
  
      # And the full multi-label result
      path_c, logp_c = librosa.sequence.viterbi_binary(
          p_full,
          transition,
          p_state=p_init,
          p_init=p_init,
          return_logp=True,
      )
      path_c2, logp_c2 = librosa.sequence.viterbi_binary(
          p_full, transition, p_state=p_init, return_logp=True
      )
  
      # Check that the single and multilabel cases agree
      assert np.allclose(logp_c, logp_c2)
      assert np.array_equal(path_c, path_c2)
  
imports: import numpy
  import pytest
  from test_core import srand
  import librosa
label_desc: Use image node_id 17 for calling a global function with example usage: test_viterbi_binary_example_init() without return types