code: def testConstantInit(self):
      with self.cached_session():
          rnd_par = constant_op.constant([[1, 2, 3, 4], [5, 6, 7, 8]])
          vs = partitioned_variables.create_partitioned_variables(
              [2, 4], [1, 2], rnd_par
          )
          self.evaluate(variables.global_variables_initializer())
          val = array_ops.concat(vs, 1)
          rnd = self.evaluate(rnd_par)
          self.assertAllClose(rnd, val)
          self.assertEqual(
              [dtypes.int32] * 2, [v.dtype.base_dtype for v in vs]
          )
          self._TestSaveSpec(vs, ["2 4 0,2:0,2", "2 4 0,2:2,2"])
  
imports: import os
  import numpy
  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 cond
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 3 for calling the PartitionedVariablesTestCase obj's underlying member method code with example usage: obj.testConstantInit() without return types