code: def test_ragged_input_tensor_type_error(self):
      token_begin_offsets = tf.ragged.constant(
          [[0, 4, 8, 12, 17], [0, 4, 8, 12, 17]]
      )
      token_end_offsets = tf.ragged.constant(
          [[3, 7, 11, 16, 20], [3, 7, 11, 16, 20]]
      )
      # not same as token offsets tensor type, causing error
      boise_tags = tf.constant(
          [
              ["O", "B-animal", "I-animal", "E-animal", "O"],
              ["O", "O", "O", "S-loc", "O"],
          ]
      )
      with self.assertRaises(ValueError):
          tf_text.boise_tags_to_offsets(
              token_begin_offsets, token_end_offsets, boise_tags
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import tensorflow
  import tensorflow_text
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 9 for calling the BoiseTagsToOffsetsTest obj's underlying member method code with example usage: obj.test_ragged_input_tensor_type_error() without return types