code: def test_sparse_indices(self):
      exception_cls = tf.errors.InvalidArgumentError
      error_string = "Condition x == y did not hold element-wise:"
      value = tf.compat.v1.SparseTensorValue(
          indices=[[0, 0], [1, 1], [2, 2], [3, 1]],
          values=[3, 2, -1, 3],
          dense_shape=[4, 5],
      )
      key_value = tf.compat.v1.SparseTensorValue(
          indices=[[0, 0], [1, 2], [2, 2], [3, 1]],
          values=["a", "a", "a", "b"],
          dense_shape=[4, 5],
      )
      with tf.compat.v1.Graph().as_default():
          x = tf.compat.v1.sparse_placeholder(
              tf.int64, shape=[None, None]
          )
          key = tf.compat.v1.sparse_placeholder(
              tf.string, shape=[None, None]
          )
          with tf.compat.v1.Session() as sess:
              with self.assertRaisesRegexp(exception_cls, error_string):
                  sess.run(
                      tf_utils.reduce_batch_minus_min_and_max_per_key(
                          x, key
                      ),
                      feed_dict={x: value, key: key_value},
                  )
  
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 25 for calling the TFUtilsTest obj's underlying member method code with example usage: obj.test_sparse_indices() without return types