code: def testWithValues(self):
      source = sparse_tensor.SparseTensor(
          indices=[[0, 0], [1, 2]], values=[1.0, 2], dense_shape=[3, 4]
      )
      new_tensor = source.with_values([5.0, 1.0])
      self.assertAllEqual(new_tensor.indices, source.indices)
      self.assertAllEqual(new_tensor.values, [5.0, 1.0])
      self.assertAllEqual(new_tensor.dense_shape, source.dense_shape)
  
      # ensure new value's shape is checked
      with self.assertRaises((errors.InvalidArgumentError, ValueError)):
          source.with_values([[5.0, 1.0]])
  
imports: from absl.testing import parameterized
  import numpy
  from tensorflow.core.framework import full_type_pb2
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.framework.type_utils import fulltypes_for_flat_tensors
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 5 for calling the SparseTensorTest obj's underlying member method code with example usage: obj.testWithValues() without return types