@parameterized.parameters([dict(data=['a', 'b', 'c'], partitions=[1, 2], num_partitions=10, error='Shapes \\(2,\\) and \\(3,\\) are incompatible'), dict(data=[['a', 'b'], ['c', 'd']], partitions=[[1, 2, 3], [4, 5, 6]], num_partitions=10, error='Shapes \\(2, 3\\) and \\(2, 2\\) are incompatible'), dict(data=['a', 'b', 'c'], partitions=[1, 2, 3], num_partitions=[1, 2, 3], error='must have rank 0')])
def testStaticError(self, data, partitions, num_partitions, error):
    with self.assertRaisesRegexp((ValueError, errors.InvalidArgumentError), error):
        ragged_array_ops.stack_dynamic_partitions(data, partitions, num_partitions)
@parameterized.parameters([dict(data=['a', 'b', 'c'], partitions=[1, 2], num_partitions=10, error='Shapes \\(2,\\) and \\(3,\\) are incompatible'), dict(data=[['a', 'b'], ['c', 'd']], partitions=[[1, 2, 3], [4, 5, 6]], num_partitions=10, error='Shapes \\(2, 3\\) and \\(2, 2\\) are incompatible'), dict(data=['a', 'b', 'c'], partitions=[1, 2, 3], num_partitions=[1, 2, 3], error='must have rank 0')])
def testStaticError(self, data, partitions, num_partitions, error):
    with self.assertRaisesRegexp((ValueError, errors.InvalidArgumentError), error):
        ragged_array_ops.stack_dynamic_partitions(data, partitions, num_partitions)