code: def testMergeTensorValuesSparseOriginalsUnmodified(self):
      value1 = tf.compat.v1.SparseTensorValue(
          indices=np.array([]).reshape([0, 2]),
          values=np.array([]).reshape([0, 1]),
          dense_shape=np.array([1, 4]),
      )
      value2 = tf.compat.v1.SparseTensorValue(
          indices=np.array([]).reshape([0, 2]),
          values=np.array([]).reshape([0, 1]),
          dense_shape=np.array([1, 4]),
      )
      merged_tensor_values = util.merge_tensor_values(
          tensor_values=[value1, value2]
      )
  
      # Check that the original SparseTensorValues were not mutated.
      self.assertSparseTensorValueEqual(
          tf.compat.v1.SparseTensorValue(
              indices=np.array([]).reshape([0, 2]),
              values=np.array([]).reshape([0, 1]),
              dense_shape=np.array([1, 4]),
          ),
          value1,
      )
      self.assertSparseTensorValueEqual(
          tf.compat.v1.SparseTensorValue(
              indices=np.array([]).reshape([0, 2]),
              values=np.array([]).reshape([0, 1]),
              dense_shape=np.array([1, 4]),
          ),
          value2,
      )
  
      # Check the merged SparseTensorValue.
      self.assertSparseTensorValueEqual(
          tf.compat.v1.SparseTensorValue(
              indices=np.array([]).reshape([0, 2]),
              values=np.array([]).reshape([0, 1]),
              dense_shape=np.array([2, 4]),
          ),
          merged_tensor_values,
      )
  
file_path: model-analysis/tensorflow_model_analysis/eval_saved_model/util_test.py
imports: import numpy
  import tensorflow
  from tensorflow_model_analysis.eval_saved_model import testutil
  from tensorflow_model_analysis.eval_saved_model import util
  from tensorflow.core.example import example_pb2
label_desc: Use image node_id 11 for calling the UtilTest obj's underlying member method code with example usage: obj.testMergeTensorValuesSparseOriginalsUnmodified() without return types