class_docstr: Type specification for a `tf.IndexedSlices`.
class_docstr_tok: ["Type","specification","for","a","`","tf.IndexedSlices","`","."]
code: def _to_components(self, value):
      if value.dense_shape is None:
          return (value.values, value.indices)
      else:
          return (value.values, value.indices, value.dense_shape)
  
imports: import collections
  import warnings
  import numpy
  from tensorflow.core.protobuf import struct_pb2
  from tensorflow.python import tf2
  from tensorflow.python.eager import context
  from tensorflow.python.framework import composite_tensor
  from tensorflow.python.framework import composite_tensor_gradient
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_conversion_registry
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import tensor_spec
  from tensorflow.python.framework import tensor_util
  from tensorflow.python.framework import type_spec
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.saved_model import nested_structure_coder
  from tensorflow.python.types import internal
  from tensorflow.python.util.compat import collections_abc
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 4 for calling the IndexedSlicesSpec obj's underlying member method code with example usage: obj._to_components(value) and returns: value,  value, value,  value,  value