code: def _TestSaveSpec(self, slices, expected_specs):
      self.assertEqual(len(expected_specs), len(slices))
      for i in range(len(expected_specs)):
          self.assertEqual(
              expected_specs[i], slices[i]._save_slice_info.spec
          )
  
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 1 for calling the PartitionedVariablesTestCase obj's underlying member method code with example usage: obj._TestSaveSpec(slices, expected_specs) without return types