code: def testConsumers(self):
      with context.graph_mode():
          sp = sparse_tensor.SparseTensor(
              [[0, 0], [1, 2]], [1.0, 3.0], [3, 4]
          )
          w = ops.convert_to_tensor(np.ones([4, 1], np.float32))
          out = sparse_ops.sparse_tensor_dense_matmul(sp, w)
          self.assertEqual(len(sp.consumers()), 1)
          self.assertEqual(sp.consumers()[0], out.op)
  
          dense = sparse_ops.sparse_tensor_to_dense(sp)
          self.assertEqual(len(sp.consumers()), 2)
          self.assertIn(dense.op, sp.consumers())
          self.assertIn(out.op, sp.consumers())
  
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 4 for calling the SparseTensorTest obj's underlying member method code with example usage: obj.testConsumers() without return types