code: def testConstructorFromSparseTensor(self):
      if not self._gpu_available:
          return
  
      a_indices = np.array([[0, 0], [2, 3], [2, 4], [3, 0]])
      a_values = [1.0, 5.0, -1.0, -2.0]
      a_dense_shape = [5, 6]
  
      a_st = sparse_tensor.SparseTensor(
          a_indices, a_values, a_dense_shape
      )
      a_st = math_ops.cast(a_st, dtypes.float32)
      a_sm = sparse_csr_matrix_ops.CSRSparseMatrix(a_st)
      self.assertEqual(a_sm.shape, a_dense_shape)
  
      a_st_rt = a_sm.to_sparse_tensor()
      a_st_rt = self.evaluate(a_st_rt)
  
      self.assertAllEqual(a_indices, a_st_rt.indices)
      self.assertAllClose(a_values, a_st_rt.values)
      self.assertAllEqual(a_dense_shape, a_st_rt.dense_shape)
  
imports: import itertools
  import numpy
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.linalg.sparse import sparse_csr_matrix_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the CSRSparseMatrixTest obj's underlying member method code with example usage: obj.testConstructorFromSparseTensor() without return types