code: def testSomeErrors(self):
      with self.cached_session():
          rnd = variables.Variable(random_ops.random_uniform([10, 43]))
          with self.assertRaises(ValueError):
              partitioned_variables.create_partitioned_variables(
                  [10], [1, 1], initialized_value(rnd)
              )
          with self.assertRaises(ValueError):
              partitioned_variables.create_partitioned_variables(
                  [10, 20], [1], initialized_value(rnd)
              )
          with self.assertRaises(ValueError):
              partitioned_variables.create_partitioned_variables(
                  [10, 43], [1], initialized_value(rnd)
              )
          with self.assertRaises(ValueError):
              partitioned_variables.create_partitioned_variables(
                  [10, 43], [1, 2, 3], initialized_value(rnd)
              )
          with self.assertRaises(ValueError):
              partitioned_variables.create_partitioned_variables(
                  [10, 43], [11, 1], initialized_value(rnd)
              )
          with self.assertRaises(ValueError):
              partitioned_variables.create_partitioned_variables(
                  [10, 43], [20, 1], initialized_value(rnd)
              )
          with self.assertRaises(ValueError):
              partitioned_variables.create_partitioned_variables(
                  [10, 43], [1, 50], initialized_value(rnd)
              )
  
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 13 for calling the PartitionedVariablesTestCase obj's underlying member method code with example usage: obj.testSomeErrors() without return types