code: def testApplyBucketsWithInterpolationSparseTensor(self):
      with tf.compat.v1.Graph().as_default():
          with self.test_session() as sess:
              x = tf.SparseTensor(
                  indices=[
                      [0, 0, 0],
                      [1, 1, 2],
                      [3, 1, 4],
                      [1, 1, 4],
                      [6, 1, 1],
                      [3, 1, 2],
                  ],
                  values=[15, 10, 20, 17, -1111, 21],
                  dense_shape=[7, 3, 5],
              )
              boundaries = [[10, 20]]
              output = mappers.apply_buckets_with_interpolation(
                  x, boundaries
              )
              expected_results = tf.SparseTensor(
                  indices=x.indices,
                  values=[0.5, 0, 1, 0.7, 0, 1],
                  dense_shape=x.dense_shape,
              )
              actual_results = sess.run(output)
              self.assertAllClose(
                  actual_results.values, expected_results.values, 1e-6
              )
              self.assertAllEqual(
                  actual_results.indices, expected_results.indices
              )
              self.assertAllEqual(
                  actual_results.dense_shape,
                  expected_results.dense_shape,
              )
  
imports: import numpy
  import tensorflow
  from tensorflow_transform import mappers
  from tensorflow_transform import test_case
label_desc: Use image node_id 39 for calling the MappersTest obj's underlying member method code with example usage: obj.testApplyBucketsWithInterpolationSparseTensor() without return types