code: def test_viterbi_in_exp_space_with_negative_weights_fails(self):
      scores = np.array(
          [[10.0, 12.0, 6.0, 4.0], [13.0, 12.0, 11.0, 10.0]]
      )
      x = 0.0
      # pyformat: disable
      # pylint: disable=bad-whitespace
      # pylint: disable=bad-continuation
      transition_params = np.array(
          [
              [0.1, 0.2, 0.3, 0.4],
              [0.5, -0.6, 0.7, 0.8],
              [0.9, x, 0.15, x],
              [0.25, 0.35, 0.45, 0.55],
          ]
      )
      # pyformat: enable
      # pylint: enable=bad-whitespace
      # pylint: enable=bad-continuation
  
      with self.assertRaises(ValueError):
          _, _ = viterbi_decode.decode(
              scores, transition_params, use_log_space=False
          )
  
file_path: text/tensorflow_text/python/numpy/viterbi_decode_test.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  import numpy
  from tensorflow_text.python.numpy import viterbi_decode
label_desc: Use image node_id 7 for calling the ViterbiDecodeTest obj's underlying member method code with example usage: obj.test_viterbi_in_exp_space_with_negative_weights_fails() without return types