class_docstr: Utility to track the model resource tensor (for SavedModel support).
code: def _create_resource(self):
      model, name = self._model, self._name
      with ops.name_scope(
          name, "SentenceTokenizerInitializer", [model]
      ):
          # TODO(b/318839908): Switch to using a ref-counted resource instead of
          # this kernel-owned resource.
          return gen_sentencepiece_tokenizer.sentencepiece_op(
              model=model
          )
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from tensorflow.python.eager import monitoring
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops.ragged import ragged_conversion_ops
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.ops.ragged.ragged_tensor import RaggedTensor
  from tensorflow.python.trackable import resource
  from tensorflow_text.python.ops.tokenization import Detokenizer
  from tensorflow_text.python.ops.tokenization import TokenizerWithOffsets
  from tensorflow.python.framework import load_library
  from tensorflow.python.platform import resource_loader
label_desc: Use image node_id 2 for calling the _SentencepieceModelResource obj's underlying member method code with example usage: obj._create_resource() and returns: gen_sentencepiece_tokenizer