code: def testScalarPartitions(self):
      data_list = [10, 13, 12, 11]
      with self.session():
          data = constant_op.constant(data_list, dtype=dtypes.float64)
          indices = 3
          partitions = data_flow_ops.dynamic_partition(
              data, indices, num_partitions=4
          )
          partition_vals = self.evaluate(partitions)
  
      self.assertEqual(4, len(partition_vals))
      self.assertAllEqual(
          np.array([], dtype=np.float64).reshape(-1, 4),
          partition_vals[0],
      )
      self.assertAllEqual(
          np.array([], dtype=np.float64).reshape(-1, 4),
          partition_vals[1],
      )
      self.assertAllEqual(
          np.array([], dtype=np.float64).reshape(-1, 4),
          partition_vals[2],
      )
      self.assertAllEqual(
          np.array([10, 13, 12, 11], dtype=np.float64).reshape(-1, 4),
          partition_vals[3],
      )
  
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 6 for calling the DynamicPartitionTest obj's underlying member method code with example usage: obj.testScalarPartitions() without return types