code: def testApplybucketsToSparseTensor(self):
      inputs = tf.SparseTensor(
          indices=[[0, 0, 0], [0, 1, 1], [2, 2, 2]],
          values=[10, 20, -1],
          dense_shape=[3, 3, 4],
      )
      quantiles = [-10, 0, 13]
      bucketized = mappers.apply_buckets(inputs, [quantiles])
      self.assertSparseOutput(
          inputs.indices,
          tf.constant([2, 3, 1]),
          inputs.dense_shape,
          bucketized,
          close_values=False,
      )
  
imports: import numpy
  import tensorflow
  from tensorflow_transform import mappers
  from tensorflow_transform import test_case
label_desc: Use image node_id 33 for calling the MappersTest obj's underlying member method code with example usage: obj.testApplybucketsToSparseTensor() without return types