def testConcatEmptyList(self):
   with self.assertRaisesRegex(ValueError,
                               "values must not be an empty list"):
     structured_array_ops.concat([], 0)
 def testConcatNotAList(self):
   values = StructuredTensor.from_pyval({})
   with self.assertRaisesRegex(
       ValueError, "values must be a list of StructuredTensors"):
     structured_array_ops.concat(values, 0)