docstr: Returns (global_step, latest_feature).
docstr_tok: ["Returns","(","global_step",",","latest_feature",")","."]
code: def _read_vars(self, model_dir):
      """Returns (global_step, latest_feature)."""
      with ops.Graph().as_default() as g:
          ckpt_path = checkpoint_management.latest_checkpoint(model_dir)
          meta_filename = ckpt_path + ".meta"
          saver_lib.import_meta_graph(meta_filename)
          saver = saver_lib.Saver()
          with self.session(graph=g) as sess:
              saver.restore(sess, ckpt_path)
              return sess.run(ops.get_collection("my_vars"))
  
imports: from absl.testing import parameterized
  from tensorflow.python.checkpoint import checkpoint_management
  from tensorflow.python.data.experimental.ops import iterator_ops
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.estimator import estimator_lib
  from tensorflow.python.framework import combinations
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.ops import variable_v1
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
  from tensorflow.python.training import training_util
label_desc: Use image node_id 2 for calling the CheckpointInputPipelineHookTest obj's underlying member method code with example usage: obj._read_vars(model_dir) and returns: sess