code: def testErrorWrongDimsIndices(self):
      data = constant_op.constant([[0], [1], [2]])
      indices = constant_op.constant([[0], [0]])
      with self.assertRaises(ValueError):
          data_flow_ops.dynamic_partition(
              data, indices, num_partitions=4
          )
  
imports: import unittest
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.framework import config
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  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 data_flow_ops
  from tensorflow.python.ops import gradients_impl
  import tensorflow.python.ops.data_flow_grad
  from tensorflow.python.platform import test
label_desc: Use image node_id 17 for calling the DynamicPartitionTest obj's underlying member method code with example usage: obj.testErrorWrongDimsIndices() without return types