class_docstr: Class for scanning checkpoint directory and updating the checkpoint state
class_docstr_tok: ["Class","for","scanning","checkpoint","directory","and","updating","the","checkpoint","state"]
code: def last_checkpoint(self) -> Union[None, SingleCheckpoint]:
      if len(self._all_checkpoints) == 0:
          return None
      return self._all_checkpoints[-1]
  
imports: import os
  import re
  from typing import List, Union, Tuple
label_desc: Use image node_id 3 for calling the CheckpointStateUpdater obj's underlying member method code with example usage: obj.last_checkpoint() and returns: self, None