code: def testClipByGlobalNormPreservesDenseShape(self):
      dense_shape = (1,)
      slices = indexed_slices_lib.IndexedSlices(
          constant_op.constant([1.0]),
          constant_op.constant([0]),
          dense_shape=dense_shape,
      )
      ans, _ = clip_ops.clip_by_global_norm([slices], 1.0)
      modified_slices = ans[0]
      self.assertEqual(dense_shape, slices.dense_shape)
      self.assertEqual(dense_shape, modified_slices.dense_shape)
  
imports: import numpy
  from tensorflow.python.eager import backprop
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import indexed_slices
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import clip_ops
  from tensorflow.python.ops import gen_math_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 23 for calling the ClipTest obj's underlying member method code with example usage: obj.testClipByGlobalNormPreservesDenseShape() without return types