code: def test_ragged_input_tensor_type_error(self):
      token_begin_offsets = tf.ragged.constant(
          [[0, 4, 8, 12, 17], [0, 4, 8, 12]]
      )
      token_end_offsets = tf.ragged.constant(
          [[3, 7, 11, 16, 20], [3, 7, 11, 16]]
      )
      span_begin_offsets = tf.ragged.constant([[4], [12]])
      span_end_offsets = tf.ragged.constant([[16], [16]])
      span_type = tf.constant([["animal"], ["loc"]])
      with self.assertRaises(ValueError):
          tf_text.offsets_to_boise_tags(
              token_begin_offsets,
              token_end_offsets,
              span_begin_offsets,
              span_end_offsets,
              span_type,
          )
  
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 10 for calling the OffsetsToBoiseTagsTest obj's underlying member method code with example usage: obj.test_ragged_input_tensor_type_error() without return types