class_docstr: Helper class for checkpoint directory information. It replicates
  the CheckpointState protobuf class in tensorflow with addition of
  two new functions: last_checkpoint() and all_checkpoints()
class_docstr_tok: ["Helper","class","for","checkpoint","directory","information",".","It","replicates","the","CheckpointState","protobuf","class","in","tensorflow","with","addition","of","two","new","functions",":","last_checkpoint","(",")","and","all_checkpoints","(",")"]
docstr: :param checkpoints: sorted list of checkpoints from oldest to newest. checkpoint[-1] is
      considered to be the most recent checkpoint.
  :param checkpoint_dir: checkpoint directory which is added to the paths
docstr_tok: [":","param","checkpoints",":","sorted","list","of","checkpoints","from","oldest","to","newest",".","checkpoint","[","-1","]","is","considered","to","be","the","most","recent","checkpoint",".",":","param","checkpoint_dir",":","checkpoint","directory","which","is","added","to","the","paths"]
code: def __init__(
      self, checkpoints: List[SingleCheckpoint], checkpoint_dir: str
  ):
      """
      :param checkpoints: sorted list of checkpoints from oldest to newest. checkpoint[-1] is
          considered to be the most recent checkpoint.
      :param checkpoint_dir: checkpoint directory which is added to the paths
      """
      self._checkpoints = checkpoints
      self._checkpoin_dir = checkpoint_dir
  
imports: import os
  import re
  from typing import List, Union, Tuple
label_desc: Use image node_id 1 to create a new CheckpointState object from inherited base classes: object with example: obj = CheckpointState(checkpoints, checkpoint_dir)