code: def _assertEqual_indexedslices(self, expected_tensor, result):
      self.assertAllEqual(expected_tensor.indices, result.indices)
      self.assertAllEqual(expected_tensor.values, result.values)
      if (
          result.dense_shape is not None
          and expected_tensor.dense_shape is not None
      ):
          self.assertAllEqual(
              expected_tensor.dense_shape, result.dense_shape
          )
  
imports: import time
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors_impl
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import data_flow_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the IndexedSlicesConditionalAccumulatorTest obj's underlying member method code with example usage: obj._assertEqual_indexedslices(expected_tensor, result) without return types