code: def _make_index_slices(values, indices, dense_shape=None):
      if dense_shape:
          dense_shape = array_ops.identity(dense_shape)
      return indexed_slices.IndexedSlices(
          array_ops.identity(values),
          array_ops.identity(indices),
          dense_shape,
      )
  
imports: from absl.testing import parameterized
  from tensorflow.python.distribute import combinations
  from tensorflow.python.distribute import strategy_combinations
  from tensorflow.python.distribute import test_util
  from tensorflow.python.distribute import values_v2
  from tensorflow.python.eager import def_function
  from tensorflow.python.eager import test
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import resource_variable_ops
  from tensorflow.python.ops import variables
label_desc: Use image node_id 1 for calling a global function with example usage: _make_index_slices(values, indices, dense_shape) and returns: indexed_slices