code: def test_to_vocab_range(
      self,
      x,
      vocab_size,
      input_signature,
      expected_output_values,
      function_handler,
  ):
      @function_handler(input_signature=input_signature)
      def _to_vocab_range(x, vocab_size):
          cleaned_x = tf_utils.to_vocab_range(x, vocab_size)
          self.assertIsInstance(cleaned_x, tf.SparseTensor)
          return (
              cleaned_x.indices,
              cleaned_x.values,
              cleaned_x.dense_shape,
          )
  
      (
          output_indices,
          output_values,
          output_dense_shape,
      ) = _to_vocab_range(x, vocab_size)
      self.assertAllEqual(output_indices, x.indices)
      self.assertAllEqual(output_values, expected_output_values)
      self.assertAllEqual(output_dense_shape, x.dense_shape)
  
imports: import os
  import numpy
  from packaging import version
  import tensorflow
  from tensorflow_transform import analyzers
  from tensorflow_transform import annotators
  from tensorflow_transform import tf_utils
  from tensorflow_transform import test_case
  from tensorflow.python.framework import composite_tensor
label_desc: Use image node_id 32 for calling the TFUtilsTest obj's underlying member method code with example usage: obj.test_to_vocab_range(x, vocab_size, input_signature, expected_output_values, function_handler) and returns: cleaned_x,  cleaned_x,  cleaned_x