code: def testConcatNoScalars(self):
      with self.session():
          with self.test_scope():
              scalar = constant_op.constant(7)
              dim = array_ops.placeholder(dtypes.int32)
              with self.assertRaisesRegex(
                  ValueError,
                  r"Can't concatenate scalars \(use tf\.stack instead\)",
              ):
                  array_ops.concat([scalar, scalar, scalar], dim)
  
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python import pywrap_sanitizers
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import gen_array_ops
  from tensorflow.python.ops import gradients_impl
  from tensorflow.python.ops import math_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 17 for calling the ConcatTest obj's underlying member method code with example usage: obj.testConcatNoScalars() without return types