code: def testNegativeDim(self):
      with test_util.use_gpu():
          cdim = constant_op.constant(-2, dtypes.int32)
          s0 = constant_op.constant([2, 3, 5], dtypes.int32)
          s1 = constant_op.constant([2, 7, 5], dtypes.int32)
          s2 = constant_op.constant([2, 20, 5], dtypes.int32)
          off = gen_array_ops.concat_offset(cdim, [s0, s1, s2])
          ans = self.evaluate(off)
          self.assertAllEqual(ans, [[0, 0, 0], [0, 3, 0], [0, 10, 0]])
  
          cdim = constant_op.constant(-3, dtypes.int32)
          s0 = constant_op.constant([2, 3, 5], dtypes.int32)
          s1 = constant_op.constant([1, 3, 5], dtypes.int32)
          s2 = constant_op.constant([3, 3, 5], dtypes.int32)
          off = gen_array_ops.concat_offset(cdim, [s0, s1, s2])
          ans = self.evaluate(off)
          self.assertAllEqual(ans, [[0, 0, 0], [2, 0, 0], [3, 0, 0]])
  
imports: import numpy
  from tensorflow.python.eager import def_function
  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 ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gradient_checker
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import nn_ops
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
label_desc: Use image node_id 6 for calling the ConcatOffsetTest obj's underlying member method code with example usage: obj.testNegativeDim() without return types