code: def testWarmStartVarWithVocabConstrainedOldVocabSize(self):
      prev_vocab_path = self._write_vocab(
          ["apple", "banana", "guava", "orange"], "old_vocab"
      )
      self._create_prev_run_var(
          "fruit_weights", initializer=[[0.5], [1.0], [1.5], [2.0]]
      )
  
      # New vocab with elements in reverse order and one new element.
      new_vocab_path = self._write_vocab(
          ["orange", "guava", "banana", "apple", "raspberry"],
          "new_vocab",
      )
      # New session and new graph.
      with ops.Graph().as_default() as g:
          with self.session(graph=g) as sess:
              fruit_weights = variable_scope.get_variable(
                  "fruit_weights",
                  initializer=[[0.0], [0.0], [0.0], [0.0], [0.0]],
              )
              ws_util._warm_start_var_with_vocab(
                  fruit_weights,
                  new_vocab_path,
                  5,
                  self.get_temp_dir(),
                  prev_vocab_path,
                  previous_vocab_size=2,
              )
              self.evaluate(variables.global_variables_initializer())
              # Old vocabulary limited to ['apple', 'banana'].
              self.assertAllClose(
                  [[0.0], [0.0], [1.0], [0.5], [0.0]],
                  fruit_weights.eval(sess),
              )
  
imports: import os
  import numpy
  from tensorflow.python.checkpoint import checkpoint
  from tensorflow.python.feature_column import feature_column_lib
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import checkpoint_utils
  from tensorflow.python.training import saver
  from tensorflow.python.training import warm_starting_util
label_desc: Use image node_id 14 for calling the WarmStartingUtilTest obj's underlying member method code with example usage: obj.testWarmStartVarWithVocabConstrainedOldVocabSize() without return types