code: def testPythonConstruction(self):
      indices = [[1, 2], [2, 0], [3, 4]]
      values = [b"a", b"b", b"c"]
      shape = [4, 5]
      sp_value = sparse_tensor.SparseTensorValue(indices, values, shape)
      for sp in [
          sparse_tensor.SparseTensor(indices, values, shape),
          sparse_tensor.SparseTensor.from_value(sp_value),
          sparse_tensor.SparseTensor.from_value(
              sparse_tensor.SparseTensor(indices, values, shape)
          ),
      ]:
          self.assertEqual(sp.indices.dtype, dtypes.int64)
          self.assertEqual(sp.values.dtype, dtypes.string)
          self.assertEqual(sp.dense_shape.dtype, dtypes.int64)
          self.assertEqual(sp.get_shape(), (4, 5))
  
          value = self.evaluate(sp)
          self.assertAllEqual(indices, value.indices)
          self.assertAllEqual(values, value.values)
          self.assertAllEqual(shape, value.dense_shape)
          sp_value = self.evaluate(sp)
          self.assertAllEqual(sp_value.indices, value.indices)
          self.assertAllEqual(sp_value.values, value.values)
          self.assertAllEqual(sp_value.dense_shape, value.dense_shape)
  
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 1 for calling the SparseTensorTest obj's underlying member method code with example usage: obj.testPythonConstruction() without return types