code: def testConcatDimOutOfRange(self):
      cdim = constant_op.constant(4, dtypes.int32)
      s0 = constant_op.constant([2, 3, 5], dtypes.int32)
      s1 = constant_op.constant([2, 7, 5], dtypes.int32)
      off = gen_array_ops.concat_offset(cdim, [s0, s1])
      with self.assertRaisesRegex(
          errors_impl.InvalidArgumentError,
          r"Concat dim is out of range: 4 vs. 3",
      ):
          self.evaluate(off)
  
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 3 for calling the ConcatOffsetTest obj's underlying member method code with example usage: obj.testConcatDimOutOfRange() without return types