code: def testApplybucketsToRaggedTensor(self):
      inputs = tf.RaggedTensor.from_row_splits(
          values=tf.RaggedTensor.from_row_splits(
              values=[10, 20, -1], row_splits=[0, 1, 1, 2, 2, 3]
          ),
          row_splits=[0, 1, 1, 2, 3, 5],
      )
      quantiles = [-10, 0, 13]
      expected_bucketized = tf.RaggedTensor.from_row_splits(
          values=tf.RaggedTensor.from_row_splits(
              values=[2, 3, 1], row_splits=[0, 1, 1, 2, 2, 3]
          ),
          row_splits=[0, 1, 1, 2, 3, 5],
      )
      bucketized = mappers.apply_buckets(inputs, [quantiles])
      self.assertAllEqual(expected_bucketized, bucketized)
  
imports: import numpy
  import tensorflow
  from tensorflow_transform import mappers
  from tensorflow_transform import test_case
label_desc: Use image node_id 34 for calling the MappersTest obj's underlying member method code with example usage: obj.testApplybucketsToRaggedTensor() without return types