code: def _split_by_offsets(s, starts, ends):
      result = list()
      for start, end in zip(starts, ends):
          result.append(bytes(s, "utf-8")[start:end])
      return result
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import numpy
  import tensorflow
  import tensorflow_text
  from tensorflow.lite.python import interpreter
  from tensorflow.python.framework import test_util
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling a global function with example usage: _split_by_offsets(s, starts, ends) and returns: result