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